summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-06 06:37:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-06 06:37:01 +0000
commit95ad43eeb5d967d61be874e5700ee6d8667bf660 (patch)
treebe539344ea68014b792caf7b9a44d6934fe1bbb7 /file.c
parent88f586b8ac7ccc3154753529b99048bf1abb2d9e (diff)
* eval.c (rb_f_require): move rb_file_s_expand_path from
rb_find_file_noext(). * file.c (rb_find_file_noext): move rb_file_s_expand_path to rb_f_require(). * string.c (rb_str_each_line): should propagate taint mark. * ext/nkf/nkf.c (rb_nkf_kconv): ditto. * ruby.c (load_file): local variables 'c' remain uninitialized on xflag. * regex.c (re_match): prefetched escaped character too early. * eval.c (rb_call0): add argument check for attr_readers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/file.c b/file.c
index b4e8ff138c..679808ec98 100644
--- a/file.c
+++ b/file.c
@@ -2155,12 +2155,6 @@ rb_find_file_noext(file)
0
};
- if (file[0] == '~') {
- fname = rb_str_new2(file);
- fname = rb_file_s_expand_path(1, &fname);
- file = STR2CSTR(fname);
- }
-
if (is_absolute_path(file)) {
for (i=0; ext[i]; i++) {
strcpy(fend, ext[i]);