diff options
-rw-r--r-- | lib/rubygems/config_file.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -241,9 +241,9 @@ class Gem::ConfigFile 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 - return if existing_permissions == 0600 alert_error <<-ERROR Your gem push credentials file located at: @@ -326,7 +326,7 @@ if you believe they were disclosed to a third party. Gem.load_yaml - permissions = 0600 & (~File.umask) File.open(credentials_path, "w", permissions) do |f| f.write config.to_yaml end |