aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c7e083a2d5..bbb27b239b 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3063,7 +3063,7 @@ int flags; /* EW_* flags */
*/
for (j = 0, i = 0; i < *num_file; ++i) {
/* Require the files to exist. Helps when using /bin/sh */
- if (!(flags & EW_NOTFOUND) && mch_getperm((*file)[i]) < 0)
+ if (!(flags & EW_NOTFOUND) && !os_file_exists((*file)[i]))
continue;
/* check if this entry should be included */