about summary refs log tree commit diff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-07 12:15:41 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-07 12:15:41 +0000
commitf958b41a6e7a3124e95d48fe72bbf87fce0e2fce (patch)
treef9a1a7c159c62cc84392f7bdcf97da1303649d0a /src/supervision
parentd9488baa63351cafd237f5af15018ea5898ec0bc (diff)
downloads6-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.c2
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) ;