diff options
Diffstat (limited to 'Src/cond.c')
-rw-r--r-- | Src/cond.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/cond.c b/Src/cond.c index 654b756a3..fbe49f19c 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -310,6 +310,9 @@ evalcond(Estate state) static int doaccess(char *s, int c) { + if (!strncmp(s, "/dev/fd/", 8)) + return !faccessx(atoi(s + 8), c, ACC_SELF); + return !access(unmeta(s), c); } |