diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-16 04:31:31 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-16 04:31:31 +0000 |
commit | 36ecd73133f43b336ace7943ad1c91c3ce4ef9ad (patch) | |
tree | 23d7fc0082e2e39590c67db849b689e9717e6021 /lib | |
parent | af4907c54f5f356d94c9c0ba53539487f8118659 (diff) |
* lib/rubygems/package.rb: Fixed potential perms issue unpacking of
gems on NFS. [Backport #12579]
* lib/rubygems.rb: bump version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/package.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 98e7dfaf82..f48496aa31 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -9,7 +9,7 @@ require 'rbconfig' require 'thread' module Gem - VERSION = '2.4.5.1' + VERSION = '2.4.5.2' end # Must be first since it unloads the prelude from 1.9.2 diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index 417b34b79f..e8b8b38b06 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -366,8 +366,9 @@ EOM FileUtils.mkdir_p mkdir, mkdir_options - open destination, 'wb', entry.header.mode do |out| + open destination, 'wb' do |out| out.write entry.read + FileUtils.chmod entry.header.mode, destination end if entry.file? verbose destination |