summaryrefslogtreecommitdiff
path: root/src/conn-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn-tools')
-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) ;