summaryrefslogtreecommitdiff
path: root/src/libs6
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-28 23:56:14 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-28 23:56:14 +0000
commit1719a60278cf36558b568349c0c9f9b5eb91c999 (patch)
tree5a3bf4cb7942837e55c9d5a3225cb474ad22cdd1 /src/libs6
parentfa7f29ff4b5aef142143e9c1d887d73788b703e4 (diff)
downloads6-1719a60278cf36558b568349c0c9f9b5eb91c999.tar.xz
s6-svdir-(un)link fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6')
-rw-r--r--src/libs6/s6_supervise_link_names.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/s6_supervise_link_names.c b/src/libs6/s6_supervise_link_names.c
index 8cba399..74392b9 100644
--- a/src/libs6/s6_supervise_link_names.c
+++ b/src/libs6/s6_supervise_link_names.c
@@ -54,7 +54,7 @@ int s6_supervise_link_names (char const *scdir, char const *const *servicedirs,
int h ;
char subdir[len + 5] ;
if (nlen > maxnlen) maxnlen = nlen ;
- if (len > maxlen) maxlen = nlen ;
+ if (len > maxlen) maxlen = len ;
h = s6_svc_ok(servicedirs[i]) ;
if (h < 0) return -1 ;
if (h) bitarray_set(locked, i) ;