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

This reverts commit d9978ce5d3.

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
Родитель 9594f57f3d
Коммит 2407e89725
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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