mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
$LOAD_PATH elements should be real paths
Installed path may contain symbolic links.
This commit is contained in:
parent
765eb18a45
commit
8b8e7e6e9e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue