diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-04 00:06:19 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-04 00:06:19 +0000 |
| commit | 98f172b873a68990ce8dc6ad17c62897fd3e08e7 (patch) | |
| tree | 97d8f4ce45762a72a07ba70ccf425c7b7ed86102 | |
| parent | 06eff4143a3e55efbfded5772d3de7c5b1db6fdd (diff) | |
| download | ruby-98f172b873a68990ce8dc6ad17c62897fd3e08e7.tar.gz ruby-98f172b873a68990ce8dc6ad17c62897fd3e08e7.tar.xz ruby-98f172b873a68990ce8dc6ad17c62897fd3e08e7.zip | |
Back out the previous commit which was incorrect. I misread the
specification.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | dir.c | 2 |
2 files changed, 1 insertions, 6 deletions
@@ -1,8 +1,3 @@ -Sat May 4 07:23:20 2002 Akinori MUSHA <knu@iDaemons.org> - - * dir.c (fnmatch): Make PERIOD() independent of FNM_PATHNAME. - This fixes a bug where fnmatch('/?a', '/.a', 0) returned true. - Fri May 3 20:19:00 2002 WATANABE Hirofumi <eban@ruby-lang.org> * configure.in: add #include <errno.h> in AC_CHECK_DECLS(). @@ -141,7 +141,7 @@ range(pat, test, flags) #define ISDIRSEP(c) (pathname && isdirsep(c)) #define PERIOD(s) (period && *(s) == '.' && \ - ((s) == string || isdirsep((s)[-1]))) + ((s) == string || ISDIRSEP((s)[-1]))) static int fnmatch(pat, string, flags) const char *pat; |
