diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-16 10:20:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-16 10:20:25 +0000 |
commit | 8e1f6b07501e6b136000da5a1facf91575aa2388 (patch) | |
tree | d2253a165b4cfb961e5395341610179a74e71cf0 /dir.c | |
parent | 23c352d05c5d3b833c7f155ccbdb2cf860359607 (diff) | |
download | ruby-8e1f6b07501e6b136000da5a1facf91575aa2388.tar.gz |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |