Revert "Use untaint for File.symlink in kernel_require.rb"

This reverts commit d9978ce5d397866afae536db2aa708af3b7a4b2f.

Untaint was tentatively restored due to test failures.  But now, the
failed tests have been removed, so we can revert the tentative fix.
This commit is contained in:
Yusuke Endoh 2019-11-12 08:39:38 +09:00
parent 9594f57f3d
commit 2407e89725

View File

@ -41,10 +41,7 @@ module Kernel
resolved_path = begin
rp = nil
$LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp|
# TODO:
# for test_require.rb of ruby core test suite
# We should use Gem::UNTAINT after https://bugs.ruby-lang.org/issues/16131
safe_lp = lp.dup.untaint
safe_lp = lp.dup.tap(&Gem::UNTAINT)
begin
if File.symlink? safe_lp # for backword compatibility
next