* 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:
parent
3448160b24
commit
a02b33742c
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jun 21 10:47:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/fileutils.rb (FileUtils::Entry_#copy_file): open with
|
||||||
|
default umask. [ruby-core:23952]
|
||||||
|
|
||||||
Sun Jun 21 10:46:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jun 21 10:46:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* transcode.c (enc_arg): default interanl encoding may not be set.
|
* transcode.c (enc_arg): default interanl encoding may not be set.
|
||||||
|
@ -1261,7 +1261,9 @@ module FileUtils
|
|||||||
end
|
end
|
||||||
|
|
||||||
def copy_file(dest)
|
def copy_file(dest)
|
||||||
IO.copy_stream(path(), dest)
|
File.open(dest, 'wb') do |f|
|
||||||
|
IO.copy_stream(path(), f)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def copy_metadata(path)
|
def copy_metadata(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user