From 1e0830c1985e00da3a6bb4e03e7cc7acd1b5612a Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 4 May 2002 00:06:19 +0000 Subject: [PATCH] Back out the previous commit which was incorrect. I misread the specification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ----- dir.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index b37ccbfbd2..854b24b919 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,3 @@ -Sat May 4 07:23:20 2002 Akinori MUSHA - - * 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 * configure.in: add #include in AC_CHECK_DECLS(). diff --git a/dir.c b/dir.c index d016bf4f9e..8ade5471c6 100644 --- a/dir.c +++ b/dir.c @@ -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;