about summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c3
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);
 }