aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 9c1b30027f..1086658f0d 100644
--- a/dir.c
+++ b/dir.c
@@ -1205,7 +1205,7 @@ glob_helper(path, dirsep, exist, isdir, beg, end, flags, func, arg)
else
new_isdir = NO;
#else
- new_isdir = dp->d_isdir ? YES : dp->d_isrep ? UNKNOWN : NO;
+ new_isdir = dp->d_isdir ? (!dp->d_isrep ? YES : UNKNOWN) : NO;
#endif
}