mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
5c7b8af937
commit
1e0830c198
2 changed files with 1 additions and 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>
|
Fri May 3 20:19:00 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in: add #include <errno.h> in AC_CHECK_DECLS().
|
* configure.in: add #include <errno.h> in AC_CHECK_DECLS().
|
||||||
|
|
2
dir.c
2
dir.c
|
@ -141,7 +141,7 @@ range(pat, test, flags)
|
||||||
|
|
||||||
#define ISDIRSEP(c) (pathname && isdirsep(c))
|
#define ISDIRSEP(c) (pathname && isdirsep(c))
|
||||||
#define PERIOD(s) (period && *(s) == '.' && \
|
#define PERIOD(s) (period && *(s) == '.' && \
|
||||||
((s) == string || isdirsep((s)[-1])))
|
((s) == string || ISDIRSEP((s)[-1])))
|
||||||
static int
|
static int
|
||||||
fnmatch(pat, string, flags)
|
fnmatch(pat, string, flags)
|
||||||
const char *pat;
|
const char *pat;
|
||||||
|
|
Loading…
Add table
Reference in a new issue