summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-12 09:11:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-12 09:11:12 +0000
commit68be462263159902ba632e83c5f4728dd4b5ffe1 (patch)
treeb8ce7a555509356d549787464d0a16762e860f63
parent29adeb4c1a67ea30cd2f228324fa6d8de39e8e24 (diff)
downloadruby-68be462263159902ba632e83c5f4728dd4b5ffe1.tar.gz
ruby-68be462263159902ba632e83c5f4728dd4b5ffe1.tar.xz
ruby-68be462263159902ba632e83c5f4728dd4b5ffe1.zip
* dir.c (glob_helper): should pass matched path. (ruby-bugs-ja:PR#333)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--dir.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ebd2bf88..eae6b822d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
-Thu Sep 12 17:45:15 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+Thu Sep 12 18:10:03 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* dir.c (glob_helper): fixed freeing buffer. (ruby-bugs-ja:PR#332)
+ * dir.c (glob_helper): should pass matched path. (ruby-bugs-ja:PR#333)
+
Thu Sep 12 00:09:32 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* eval.c (rb_trap_eval): preserve thread status and so on.
diff --git a/dir.c b/dir.c
index 72f5fd3cd..1886877eb 100644
--- a/dir.c
+++ b/dir.c
@@ -796,7 +796,7 @@ glob_helper(path, sub, flags, func, arg)
buf = ALLOC_N(char, strlen(base)+NAMLEN(dp)+2);
sprintf(buf, "%s%s%s", base, (BASE) ? "/" : "", dp->d_name);
if (!m) {
- status = glob_call_func(func, path, arg);
+ status = glob_call_func(func, buf, arg);
free(buf);
if (status) goto finalize;
continue;