diff options
| author | negi0109 <negi0109.seg@gmail.com> | 2023-09-12 04:13:19 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-11 21:06:22 +0000 |
| commit | 203fdd738b0488206c03db9a7a307c170711b5ba (patch) | |
| tree | 6d3ea5d4623f257c214290064e02d1b31986aaea /lib | |
| parent | 8bb61077ad02c2b57eb5727b7da8a7a4fff28ef3 (diff) | |
[rubygems/rubygems] Fixed include realpath in error statement
https://github.com/rubygems/rubygems/commit/ac3b85bd5e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/package.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index ee64798cbb..5dcc3ce858 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -413,7 +413,7 @@ EOM # extracted. def extract_tar_gz(io, destination_dir, pattern = "*") # :nodoc: - real_destination_dir = File.realpath(destination_dir) + destination_dir = File.realpath(destination_dir) directories = [] symlinks = [] @@ -430,7 +430,7 @@ EOM real_destination = link_target.start_with?("/") ? link_target : File.expand_path(link_target, File.dirname(destination)) raise Gem::Package::SymlinkError.new(full_name, real_destination, destination_dir) unless - normalize_path(real_destination).start_with? normalize_path(real_destination_dir + "/") + normalize_path(real_destination).start_with? normalize_path(destination_dir + "/") symlinks << [full_name, link_target, destination, real_destination] end |
