summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-04 00:06:19 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-04 00:06:19 +0000
commit1e0830c1985e00da3a6bb4e03e7cc7acd1b5612a (patch)
tree97d8f4ce45762a72a07ba70ccf425c7b7ed86102 /dir.c
parent5c7b8af9374fde22c9f229265c4e52298293aedb (diff)
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
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
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;