Actions
Bug #9748
closedFileUtils.cp always preserve the permission of original files
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
Backport:
Description
FileUtils.cp
will always preserve the permission of original files even if we passed :preserve=>false
.
I think the problem is because:
< File.open(dest, 'wb') do |f|
---
> File.open(dest, 'wb', s.stat.mode) do |f|
Actions
Like0
Like0Like0Like0Like0Like0Like0