[前][次][番号順一覧][スレッド一覧]

ruby-changes:27018

From: drbrain <ko1@a...>
Date: Tue, 5 Feb 2013 16:38:12 +0900 (JST)
Subject: [ruby-changes:27018] drbrain:r39070 (trunk): * lib/rubygems/config_file.rb: Ignore permissions check on windows.

drbrain	2013-02-05 16:37:16 +0900 (Tue, 05 Feb 2013)

  New Revision: 39070

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39070

  Log:
    * lib/rubygems/config_file.rb:  Ignore permissions check on windows.
      Windows writes 0600 file as 0644 permissions making the check
      useless.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/config_file.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39069)
+++ ChangeLog	(revision 39070)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb  5 16:37:00 2013  Eric Hodel  <drbrain@s...>
+
+	* 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@r...>
 
 	* vm_method.c (rb_obj_respond_to): drop optional include_all flag if
Index: lib/rubygems/config_file.rb
===================================================================
--- lib/rubygems/config_file.rb	(revision 39069)
+++ lib/rubygems/config_file.rb	(revision 39070)
@@ -230,6 +230,7 @@ class Gem::ConfigFile https://github.com/ruby/ruby/blob/trunk/lib/rubygems/config_file.rb#L230
   # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]