summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--dir.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 854b24b919..b37ccbfbd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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().
diff --git a/dir.c b/dir.c
index 8ade5471c6..d016bf4f9e 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;