ruby-changes:37753
From: nobu <ko1@a...>
Date: Wed, 4 Mar 2015 01:27:50 +0900 (JST)
Subject: [ruby-changes:37753] nobu:r49834 (trunk): rbinstall.rb: gems dir_mode
nobu 2015-03-04 01:27:34 +0900 (Wed, 04 Mar 2015) New Revision: 49834 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49834 Log: rbinstall.rb: gems dir_mode * tool/rbinstall.rb (DirPackage#extract_files): set directories permission of gems. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 49833) +++ tool/rbinstall.rb (revision 49834) @@ -26,7 +26,7 @@ rescue LoadError https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L26 end STDOUT.sync = true -File.umask(0) +File.umask(0222) def parse_args(argv = ARGV) $mantype = 'doc' @@ -658,10 +658,12 @@ end https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L658 def extract_files(destination_dir, pattern = "*") path = File.dirname(@gem.path) return if path == destination_dir + File.chmod(0700, destination_dir) install_recursive(path, without_destdir(destination_dir), :glob => pattern, :no_install => "*.gemspec", :mode => $data_mode) + File.chmod($dir_mode, destination_dir) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/