diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | dir.c | 5 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Mon Sep 25 23:10:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * dir.c (rb_push_glob): need not to check by FilePathValue(). + [ruby-dev:29599] + + * dir.c (dir_globs): ditto. + Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913] @@ -1497,8 +1497,7 @@ rb_push_glob(VALUE str, int flags) /* '\0' is delimiter */ long offset = 0; VALUE ary; - FilePathValue(str); - + StringValue(str); ary = rb_ary_new(); while (offset < RSTRING_LEN(str)) { @@ -1526,7 +1525,7 @@ dir_globs(long argc, VALUE *argv, int flags) for (i = 0; i < argc; ++i) { int status; VALUE str = argv[i]; - FilePathValue(str); + StringValue(str); status = push_glob(ary, RSTRING_PTR(str), flags); if (status) rb_jump_tag(status); } |