summaryrefslogtreecommitdiff
path: root/src/conn-tools/s6-accessrules-cdb-from-fs.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-06-08 09:59:01 +0000
committerLaurent Bercot <ska@appnovation.com>2022-06-08 09:59:01 +0000
commitff147a1493759c0662912564c0ecd26f59590322 (patch)
tree0d738aa9d0b1e5476b4fe18a2e935ce1cae730e5 /src/conn-tools/s6-accessrules-cdb-from-fs.c
parent2a47de8defea86ae35ffb53e8c30667be940ac4e (diff)
downloads6-ff147a1493759c0662912564c0ecd26f59590322.tar.xz
Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/conn-tools/s6-accessrules-cdb-from-fs.c')
-rw-r--r--src/conn-tools/s6-accessrules-cdb-from-fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn-tools/s6-accessrules-cdb-from-fs.c b/src/conn-tools/s6-accessrules-cdb-from-fs.c
index a6587db..1b0b233 100644
--- a/src/conn-tools/s6-accessrules-cdb-from-fs.c
+++ b/src/conn-tools/s6-accessrules-cdb-from-fs.c
@@ -86,7 +86,7 @@ static void doit (cdbmaker *c, stralloc *sa, size_t start)
sa->len = k+1 ;
stralloc_catb(sa, "exec", 5) ;
r = openreadnclose(sa->s, tmp.s + tmpbase + 5 + envlen, 4096) ;
- if ((r < 0) && (errno != ENOENT))
+ if ((r == -1) && (errno != ENOENT))
{
cleanup() ;
strerr_diefu2sys(111, "openreadnclose ", sa->s) ;