summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 2a7ffc9909..19524ae146 100644
--- a/dir.c
+++ b/dir.c
@@ -1737,7 +1737,9 @@ glob_helper(
else
new_isdir = NO;
#else
- new_isdir = dp->d_type == DT_DIR ? YES : dp->d_type == DT_LNK ? UNKNOWN : NO;
+ new_isdir = dp->d_type == DT_DIR ? YES :
+ (dp->d_type == DT_LNK || dp->d_type == DT_UNKNOWN) ? UNKNOWN :
+ NO;
#endif
}