summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 08:05:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 08:05:59 +0000
commit5b48235e9c77c2976f9dcb6545157d90a541b552 (patch)
tree456267877ddc5a1453a615ee7d637c446b26e4bd /file.c
parent2001c34b9200e8aa8ef5d8018287b13ee9c2c9db (diff)
downloadruby-5b48235e9c77c2976f9dcb6545157d90a541b552.tar.gz
ruby-5b48235e9c77c2976f9dcb6545157d90a541b552.tar.xz
ruby-5b48235e9c77c2976f9dcb6545157d90a541b552.zip
* file.c (rb_find_file_ext): should not be infected from other
load paths. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 15979c4f5..4155d33a1 100644
--- a/file.c
+++ b/file.c
@@ -4566,6 +4566,7 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
*filep = tmp;
return j+1;
}
+ FL_UNSET(tmp, FL_TAINT | FL_UNTRUSTED);
}
rb_str_set_len(fname, fnlen);
}