summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/rubygems/config_file.rb1
2 files changed, 7 insertions, 0 deletions
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 <drbrain@segment7.net>
+
+ * 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 <nobu@ruby-lang.org>
* 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