1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ocean 2004-02-24 08:17:10 +00:00
parent d22ade523f
commit 77d7ff7cbe
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 24 17:07:17 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* dir.c (fnmatch): File.fnmatch with FNM_PATHNAME was broken
for the pattern including '*' followed by '/'.
Tue Feb 24 13:22:21 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/rdoc.rb (RDoc::RDoc::normalized_file_list): Attempt to get better

1
dir.c
View file

@ -250,6 +250,7 @@ fnmatch(pat, string, flags)
s = rb_path_next(s);
if (*s) {
INC_S();
++pat;
break;
}
return FNM_NOMATCH;