From d1affdea923a0ac117ebb5e4c2e5011f59fd3188 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 21 Jan 2017 16:46:19 +0100 Subject: Forgot a bang... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 60e4cb0..6c1bd0a 100644 --- a/src/util.c +++ b/src/util.c @@ -227,7 +227,7 @@ int xenopen(int status, const char *path, int flags, int mode, ...) { int fd; - if (strncmp(path, "/dev/fd/", sizeof("/dev/fd/") - 1)) + if (!strncmp(path, "/dev/fd/", sizeof("/dev/fd/") - 1)) if (!toi(path + sizeof("/dev/fd/") - 1, 0, INT_MAX, &fd)) return fd; fd = open(path, flags, mode); -- cgit v1.2.3-70-g09d2