diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-07 12:15:41 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-07 12:15:41 +0000 |
commit | f958b41a6e7a3124e95d48fe72bbf87fce0e2fce (patch) | |
tree | f9a1a7c159c62cc84392f7bdcf97da1303649d0a /src/supervision | |
parent | d9488baa63351cafd237f5af15018ea5898ec0bc (diff) | |
download | s6-f958b41a6e7a3124e95d48fe72bbf87fce0e2fce.tar.gz s6-f958b41a6e7a3124e95d48fe72bbf87fce0e2fce.tar.xz s6-f958b41a6e7a3124e95d48fe72bbf87fce0e2fce.zip |
svlink bugfix
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision')
-rw-r--r-- | src/supervision/s6-svlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-svlink.c b/src/supervision/s6-svlink.c index d36ceab..4f36f3d 100644 --- a/src/supervision/s6-svlink.c +++ b/src/supervision/s6-svlink.c @@ -42,7 +42,7 @@ static inline void checkservicedir (char const *s) size_t len = strlen(s) ; char fn[len + 9] ; memcpy(fn, s, len) ; - memcpy(fn + len, "/run", 4) ; + memcpy(fn + len, "/run", 5) ; if (stat(fn, &st) == -1) strerr_diefu2sys(111, "stat ", fn) ; if (!(st.st_mode & S_IXUSR)) strerr_dief2x(100, fn, " is not executable") ; r = s6_svc_ok(s) ; |