diff --git a/ChangeLog b/ChangeLog index d4f2a68d30..b8d4a1c067 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Nov 10 19:47:55 2004 Nobuyoshi Nakada + + * dir.c (glob_helper): path is a string object now. + Wed Nov 10 12:31:21 2004 Nobuyoshi Nakada * README.EXT (Example): extconf.rb is indispensable now. diff --git a/dir.c b/dir.c index 0c22522370..1e03d412f9 100644 --- a/dir.c +++ b/dir.c @@ -1233,7 +1233,7 @@ glob_helper(path, dirsep, exist, isdir, beg, end, flags, func, arg) if (RSTRING(path)->len > 0) { if (match_all && exist == UNKNOWN) { - if (do_lstat(path, &st) == 0) { + if (do_lstat(RSTRING(path)->ptr, &st) == 0) { exist = YES; isdir = S_ISDIR(st.st_mode) ? YES : S_ISLNK(st.st_mode) ? UNKNOWN : NO; } @@ -1244,7 +1244,7 @@ glob_helper(path, dirsep, exist, isdir, beg, end, flags, func, arg) } if (match_dir && isdir == UNKNOWN) { - if (do_stat(path, &st) == 0) { + if (do_stat(RSTRING(path)->ptr, &st) == 0) { exist = YES; isdir = S_ISDIR(st.st_mode) ? YES : NO; }