aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-01 01:51:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-01 01:51:57 +0000
commitcf8e624a1a8c954758ae112fdfeddada85451cb6 (patch)
tree62e9c5a384502659bb7b17b00da25a7f096de67f /file.c
parent4897859f3b4a8f12ab9d18b7666f45d4b2bc537b (diff)
downloadruby-cf8e624a1a8c954758ae112fdfeddada85451cb6.tar.gz
file.c: infect from arguments
* file.c (rb_check_realpath_internal): infetct the result with arguments, no taint if none are tainted and cwd is not used. [ruby-core:83583] [Bug #14060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index b7569ac75f..843a9796b0 100644
--- a/file.c
+++ b/file.c
@@ -4086,7 +4086,7 @@ rb_check_realpath_internal(VALUE basedir, VALUE path, enum rb_realpath_mode mode
}
}
- OBJ_TAINT(resolved);
+ OBJ_INFECT(resolved, unresolved_path);
RB_GC_GUARD(unresolved_path);
RB_GC_GUARD(curdir);
return resolved;