Project

General

Profile

Bug #9748

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

`FileUtils.cp` FileUtils.cp will always preserve the permission of original files even if we passed `:preserve=>false`. :preserve=>false. 

 I think the problem is because: 

 ~~~diff 
 ~~~ 
 <           File.open(dest, 'wb') do |f| 
 --- 
 >           File.open(dest, 'wb', s.stat.mode) do |f| 
 ~~~ 

Back