summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ;
}