summaryrefslogtreecommitdiff
path: root/src/misc/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/realpath.c')
-rw-r--r--src/misc/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/realpath.c b/src/misc/realpath.c
index d238ed01..2b846497 100644
--- a/src/misc/realpath.c
+++ b/src/misc/realpath.c
@@ -21,7 +21,7 @@ char *realpath(const char *restrict filename, char *restrict resolved)
return 0;
}
- fd = open(filename, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
+ fd = open(filename, O_PATH|O_NONBLOCK|O_CLOEXEC);
if (fd < 0) return 0;
__procfdname(buf, fd);