From 47dead756b863b44273345525935c87cb99cf452 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 29 Jan 2004 11:59:55 +0000 Subject: * dir.c (glob_helper): infinite loop bug in win32 code. [ruby-dev:22770] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 9c1b30027..1086658f0 100644 --- a/dir.c +++ b/dir.c @@ -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 } -- cgit