summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-10 14:25:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-10 14:25:59 +0000
commita78d49b8eecbbd9f0a6dbef688ac4a4a0e88fe8d (patch)
tree66fc8a028fae586cfecf2a34219286a42b9c3549
parentae33cbb87a1109b718a535c7587433662dc98071 (diff)
downloads6-a78d49b8eecbbd9f0a6dbef688ac4a4a0e88fe8d.tar.xz
bugfix: sarealpath() API
-rw-r--r--src/libs6/s6_supervise_link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/s6_supervise_link.c b/src/libs6/s6_supervise_link.c
index 4258e18..511cce1 100644
--- a/src/libs6/s6_supervise_link.c
+++ b/src/libs6/s6_supervise_link.c
@@ -110,7 +110,7 @@ int s6_supervise_link (char const *scdir, char const *const *servicedirs, size_t
memcpy(lname + scdirlen + 1 + prefixlen, p, len + 1) ;
rpsa.len = 0 ;
lstart = lnames.len ;
- if (!sarealpath(&rpsa, servicedirs[i]) || !stralloc_0(&rpsa)) goto err ;
+ if (sarealpath(&rpsa, servicedirs[i]) < 0 || !stralloc_0(&rpsa)) goto err ;
if (!stralloc_catb(&lnames, p, len + 1)) goto err ;
if (symlink(rpsa.s, lname) < 0) goto errl ;
}