From ce44723cf8a97c03895d75cf906e404c5dde6aae Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Feb 2009 08:05:59 +0000 Subject: [PATCH] * file.c (rb_find_file_ext): should not be infected from other load paths. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ file.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index abeee08369..989e423e33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 2 17:05:55 2009 Nobuyoshi Nakada + + * file.c (rb_find_file_ext): should not be infected from other + load paths. + Mon Feb 2 16:33:06 2009 Nobuyoshi Nakada * dir.c (dir_s_home): new method. [ruby-core:21454] diff --git a/file.c b/file.c index 15979c4f55..4155d33a1c 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); }