From a78d49b8eecbbd9f0a6dbef688ac4a4a0e88fe8d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 10 Dec 2020 14:25:59 +0000 Subject: bugfix: sarealpath() API --- src/libs6/s6_supervise_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; } -- cgit v1.2.3