From 36de1c29c48d35416d8819d32ee577c085ec05dd Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 20 Jul 2015 05:38:49 +0000 Subject: Also for s6rc-oneshot-runner (with buffer size fix) --- src/s6-rc/s6-rc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index bd5011c..423a836 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -79,9 +79,9 @@ static pid_t start_oneshot (unsigned int i, int h) char const *newargv[9 + argc + !!dryrun[0] * 6] ; char fmt[UINT32_FMT] ; char vfmt[UINT_FMT] ; - char socketfn[livelen + S6RC_ONESHOT_RUNNER_LEN + 3] ; + char socketfn[livelen + S6RC_ONESHOT_RUNNER_LEN + 12] ; byte_copy(socketfn, livelen, live) ; - byte_copy(socketfn + livelen, 16 + S6RC_ONESHOT_RUNNER_LEN, "/servicedirs/" S6RC_ONESHOT_RUNNER "/s") ; + byte_copy(socketfn + livelen, 12 + S6RC_ONESHOT_RUNNER_LEN, "/scandir/" S6RC_ONESHOT_RUNNER "/s") ; fmt[uint32_fmt(fmt, db->services[i].timeout[h])] = 0 ; vfmt[uint_fmt(vfmt, verbosity)] = 0 ; if (dryrun[0]) -- cgit v1.2.3