From 5b92c0bea3dc23b0c2be356bedafdd4e7f9110d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Feb 2014 03:45:17 +0000 Subject: dir.c: glob cases on case-insensitive system * dir.c (glob_make_pattern): all alphabets are magic characters on case-insensitive filesystems. [ruby-core:42469] [Feature #5994] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44802 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 4fe2c8832f..6eb8c9ef1c 100644 --- a/dir.c +++ b/dir.c @@ -1210,7 +1210,7 @@ glob_make_pattern(const char *p, const char *e, int flags, rb_encoding *enc) } else { const char *m = find_dirsep(p, e, flags, enc); - int magic = has_magic(p, m, flags, enc); + const int magic = FNM_SYSCASE || HAVE_HFS || has_magic(p, m, flags, enc); char *buf; if (!magic && !recursive && *m) { -- cgit v1.2.3