summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 10:20:25 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 10:20:25 (GMT)
commit8e1f6b07501e6b136000da5a1facf91575aa2388 (patch)
treed2253a165b4cfb961e5395341610179a74e71cf0 /dir.c
parent23c352d05c5d3b833c7f155ccbdb2cf860359607 (diff)
dir.c: DT_UNKNOWN
* dir.c (glob_helper): deal with DT_UNKNOWN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 2a7ffc9..19524ae 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
}