diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:14:49 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:14:49 +0000 |
commit | 87942212a6c3ea591fe1b84e59074d6d8176bf6d (patch) | |
tree | 480da78af9e4710bdbb482255abaa67afd2dc7e9 /dir.c | |
parent | 4398f77034a9729e3d1d4cce5bba76dea9fe8505 (diff) | |
download | ruby-87942212a6c3ea591fe1b84e59074d6d8176bf6d.tar.gz ruby-87942212a6c3ea591fe1b84e59074d6d8176bf6d.tar.xz ruby-87942212a6c3ea591fe1b84e59074d6d8176bf6d.zip |
* dir.c (range): Cancel change for incomplete '['. More discussion
is needed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -172,12 +172,12 @@ CompareImpl(p1, p2, nocase) static const char * range( - const char *pattern, + const char *p, /* pattern */ const char *test, int flags) { int not = 0, ok = 0; - const char *p = pattern, *t1, *t2; + const char *t1, *t2; const int nocase = flags & FNM_CASEFOLD; const int escape = !(flags & FNM_NOESCAPE); @@ -211,7 +211,7 @@ range( } } - return *test == '[' ? pattern : 0; /* treat incompleted '[' as ordinary character */ + return 0; } #define ISDIRSEP(c) (pathname && isdirsep(c)) |