diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-06 02:58:35 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-06 02:58:35 +0000 |
commit | 7112c6a1c15b26eebf0c020dfee7abd30eebde2d (patch) | |
tree | 16e0369e6aa7aee5bbbf79ba3d5ceacb53084534 /lib/rubygems/util.rb | |
parent | eb537609ba0de060c6633dc3e7dd9ba5e85c6d1b (diff) | |
download | ruby-7112c6a1c15b26eebf0c020dfee7abd30eebde2d.tar.gz |
Merge RubyGems-2.7.5 from upstream.
Please see its details: http://blog.rubygems.org/2018/02/06/2.7.5-released.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/util.rb')
-rw-r--r-- | lib/rubygems/util.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rubygems/util.rb b/lib/rubygems/util.rb index 2de45c900b..6c75910004 100644 --- a/lib/rubygems/util.rb +++ b/lib/rubygems/util.rb @@ -114,7 +114,8 @@ module Gem::Util here = File.expand_path directory loop do - Dir.chdir here, &block + Dir.chdir here, &block rescue Errno::EACCES + new_here = File.expand_path('..', here) return if new_here == here # toplevel here = new_here |