diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-21 16:46:19 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-21 16:46:19 +0100 |
| commit | d1affdea923a0ac117ebb5e4c2e5011f59fd3188 (patch) | |
| tree | e0f0f32ea6b57a0e2e496a2bb3280bb02eb0a13a | |
| parent | Don't open files from /dev/fd/, just return the fd. (diff) | |
| download | blind-d1affdea923a0ac117ebb5e4c2e5011f59fd3188.tar.gz blind-d1affdea923a0ac117ebb5e4c2e5011f59fd3188.tar.bz2 blind-d1affdea923a0ac117ebb5e4c2e5011f59fd3188.tar.xz | |
Forgot a bang...
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
