aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
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);