From 98f172b873a68990ce8dc6ad17c62897fd3e08e7 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 4 May 2002 00:06:19 +0000 Subject: 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 --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index d016bf4f9..8ade5471c 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; -- cgit