Skip to content

Commit

Permalink
Back out the previous commit which was incorrect. I misread the
Browse files Browse the repository at this point in the history
specification.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed May 4, 2002
1 parent 5c7b8af commit 1e0830c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
Sat May 4 07:23:20 2002 Akinori MUSHA <[email protected]>

* 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 <[email protected]>

* configure.in: add #include <errno.h> in AC_CHECK_DECLS().
Expand Down
2 changes: 1 addition & 1 deletion dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e0830c

Please sign in to comment.