ruby-changes:37901
From: nobu <ko1@a...>
Date: Mon, 16 Mar 2015 19:20:45 +0900 (JST)
Subject: [ruby-changes:37901] nobu:r49982 (trunk): dir.c: DT_UNKNOWN
nobu 2015-03-16 19:20:25 +0900 (Mon, 16 Mar 2015) New Revision: 49982 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49982 Log: dir.c: DT_UNKNOWN * dir.c (glob_helper): deal with DT_UNKNOWN. Modified files: trunk/dir.c Index: dir.c =================================================================== --- dir.c (revision 49981) +++ dir.c (revision 49982) @@ -1737,7 +1737,9 @@ glob_helper( https://github.com/ruby/ruby/blob/trunk/dir.c#L1737 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 } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/