commit d1affdea923a0ac117ebb5e4c2e5011f59fd3188
parent 69e3e11a75ed1dabc854406e29bacd5401912874
Author: Mattias Andrée <maandree@kth.se>
Date: Sat, 21 Jan 2017 16:46:19 +0100
Forgot a bang...
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);