Permalink
Browse files

- Fixed umask error when stdlib is required and unresolved dependenci…

…es exist.
  • Loading branch information...
1 parent 705e5e6 commit 223cd0e96bffb922fbfaab684b797c1a92495ec5 @zenspider zenspider committed Feb 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems.rb
View
4 lib/rubygems.rb
@@ -396,11 +396,11 @@ def self.each_load_path(partials)
# problem, then we will silently continue.
def self.ensure_gem_subdirectories dir = Gem.dir
- require 'fileutils'
-
old_umask = File.umask
File.umask old_umask | 002
+ require 'fileutils'
+
%w[cache doc gems specifications].each do |name|
subdir = File.join dir, name
next if File.exist? subdir

0 comments on commit 223cd0e

Please sign in to comment.