From 627a08251c2b2dab312307c0e9c51774c34ef016 Mon Sep 17 00:00:00 2001 From: drbrain Date: Tue, 5 Feb 2013 07:37:16 +0000 Subject: * lib/rubygems/config_file.rb: Ignore permissions check on windows. Windows writes 0600 file as 0644 permissions making the check useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rubygems/config_file.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d802014846..d8e85345f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 5 16:37:00 2013 Eric Hodel + + * lib/rubygems/config_file.rb: Ignore permissions check on windows. + Windows writes 0600 file as 0644 permissions making the check + useless. + Tue Feb 5 16:25:25 2013 Nobuyoshi Nakada * vm_method.c (rb_obj_respond_to): drop optional include_all flag if diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index 7e1432b349..5870e06370 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -230,6 +230,7 @@ class Gem::ConfigFile # error message is displayed and RubyGems aborts. def check_credentials_permissions + return if Gem.win_platform? # windows doesn't write 0600 as 0600 return unless File.exist? credentials_path existing_permissions = File.stat(credentials_path).mode & 0777 -- cgit v1.2.3