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

dir.c: try match PLAIN

* dir.c (glob_helper): try match PLAIN as well as ALPHA, which are
  separated by previous commits.  [ruby-core:61552] [Bug #9648]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-17 02:02:51 +00:00
parent f88481740a
commit c466dcc05b
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,7 @@
Sat May 17 10:40:33 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sat May 17 11:02:49 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (glob_helper): try match PLAIN as well as ALPHA, which are
separated by previous commits. [ruby-core:61552] [Bug #9648]
* dir.c (glob_make_pattern): set PLAIN for non-magical path to
skip parts which not need to glob.

1
dir.c
View file

@ -1508,6 +1508,7 @@ glob_helper(
break;
}
# endif
case PLAIN:
case MAGICAL:
if (fnmatch(p->str, enc, name, flags) == 0)
*new_end++ = p->next;