$LOAD_PATH elements should be real paths
Installed path may contain symbolic links.
This commit is contained in:
parent
765eb18a45
commit
8b8e7e6e9e
@ -293,7 +293,7 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni
|
||||
|
||||
@orig_LOAD_PATH = $LOAD_PATH.dup
|
||||
$LOAD_PATH.map! do |s|
|
||||
expand_path = File.expand_path(s)
|
||||
expand_path = File.realpath(s) rescue File.expand_path(s)
|
||||
if expand_path != s
|
||||
expand_path.untaint
|
||||
if s.instance_variable_defined?(:@gem_prelude_index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user