Actions
Bug #4507
closedFileUtils.cp in 1.9 doesn't preserve permissions unless :preserve is set
Description
=begin
By default /bin/cp preserves file permissions when copying a file, -p flag is meant for preserving uid, gid, mtime etc. However with FileUtils.cp in 1.9 permissions are only copied when :preserve => true option is given. I think the least surprise behavior would be to mimic cp behavior.
Patch is attached.
=end
Files
Actions
Like0
Like0Like0