diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-20 05:38:49 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-20 05:38:49 +0000 |
commit | 36de1c29c48d35416d8819d32ee577c085ec05dd (patch) | |
tree | a79027e18afdb4fc9fa8a4e4399f60e0f050fd57 | |
parent | fd38bd8ad5ddaf5f81887b878dddd212a77113b0 (diff) | |
download | s6-rc-36de1c29c48d35416d8819d32ee577c085ec05dd.tar.xz |
Also for s6rc-oneshot-runner (with buffer size fix)
-rw-r--r-- | src/s6-rc/s6-rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]) |