* lib/fileutils.rb (FileUtils::Entry_#copy_file): open with

default umask.  [ruby-core:23952]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-06-21 01:47:25 +00:00
parent 3448160b24
commit a02b33742c
2 changed files with 8 additions and 1 deletions

View file

@ -1261,7 +1261,9 @@ module FileUtils
end
def copy_file(dest)
IO.copy_stream(path(), dest)
File.open(dest, 'wb') do |f|
IO.copy_stream(path(), f)
end
end
def copy_metadata(path)