mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (mkdir, mkdir_p): revert.
* instruby.rb (umask): umask 0022, not 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf115a5e41
commit
ced8bbee7c
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Mar 9 19:30:25 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/fileutils.rb (mkdir, mkdir_p): revert.
|
||||||
|
|
||||||
|
* instruby.rb (umask): umask 0022, not 0.
|
||||||
|
|
||||||
Sun Mar 9 17:09:40 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Sun Mar 9 17:09:40 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.
|
* lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.
|
||||||
|
|
|
@ -9,7 +9,7 @@ require 'shellwords'
|
||||||
require 'getopts'
|
require 'getopts'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
|
|
||||||
File.umask(0)
|
File.umask(0022)
|
||||||
|
|
||||||
def parse_args()
|
def parse_args()
|
||||||
getopts('n', 'dest-dir:',
|
getopts('n', 'dest-dir:',
|
||||||
|
|
|
@ -140,7 +140,7 @@ module FileUtils
|
||||||
return if noop
|
return if noop
|
||||||
|
|
||||||
list.each do |dir|
|
list.each do |dir|
|
||||||
Dir.mkdir dir, 0755
|
Dir.mkdir dir
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ module FileUtils
|
||||||
dir = File.dirname(dir)
|
dir = File.dirname(dir)
|
||||||
end
|
end
|
||||||
stack.reverse_each do |n|
|
stack.reverse_each do |n|
|
||||||
Dir.mkdir n, 0755
|
Dir.mkdir n
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue