1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (glob_helper): infinite loop bug in win32 code.

[ruby-dev:22770]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2004-01-29 11:59:55 +00:00
parent 784360a978
commit 0ae750341e
2 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,11 @@ Thu Jan 29 19:28:16 2004 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (Request#initialize): reject only when a path is
empty. [ruby-dev:22771]
Thu Jan 29 18:54:08 2004 H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
* dir.c (glob_helper): infinite loop bug in win32 code.
[ruby-dev:22770]
Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
* dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.

2
dir.c
View file

@ -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
}