diff --git a/ChangeLog b/ChangeLog index 726e227328..847297fb29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Mar 9 19:30:25 2003 WATANABE Hirofumi + + * lib/fileutils.rb (mkdir, mkdir_p): revert. + + * instruby.rb (umask): umask 0022, not 0. + Sun Mar 9 17:09:40 2003 WATANABE Hirofumi * lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755. diff --git a/instruby.rb b/instruby.rb index 5fc09468ef..fc35948bf7 100644 --- a/instruby.rb +++ b/instruby.rb @@ -9,7 +9,7 @@ require 'shellwords' require 'getopts' require 'tempfile' -File.umask(0) +File.umask(0022) def parse_args() getopts('n', 'dest-dir:', diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 80ee1a3c0b..0997b94735 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -140,7 +140,7 @@ module FileUtils return if noop list.each do |dir| - Dir.mkdir dir, 0755 + Dir.mkdir dir end end @@ -173,7 +173,7 @@ module FileUtils dir = File.dirname(dir) end stack.reverse_each do |n| - Dir.mkdir n, 0755 + Dir.mkdir n end end