From 77d7ff7cbe2273457d3770ac9d267294afc8ef45 Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 24 Feb 2004 08:17:10 +0000 Subject: * dir.c (fnmatch): File.fnmatch with FNM_PATHNAME was broken for the pattern including '*' followed by '/'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 19d37dd876..aa3a4b989e 100644 --- a/dir.c +++ b/dir.c @@ -250,6 +250,7 @@ fnmatch(pat, string, flags) s = rb_path_next(s); if (*s) { INC_S(); + ++pat; break; } return FNM_NOMATCH; -- cgit v1.2.3