summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index f3570e6917..6af01d213a 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -26,7 +26,7 @@ rescue LoadError
end
STDOUT.sync = true
-File.umask(0)
+File.umask(0222)
def parse_args(argv = ARGV)
$mantype = 'doc'
@@ -658,10 +658,12 @@ end
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