Project

General

Profile

Actions

Bug #4507

closed

FileUtils.cp in 1.9 doesn't preserve permissions unless :preserve is set

Added by olegshaldybin (Oleg Shaldybin) about 13 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-03-18 trunk 31122) [x86_64-darwin10.6.0]
Backport:
[ruby-core:35518]

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

fileutils_cp_permissions.patch (1.48 KB) fileutils_cp_permissions.patch olegshaldybin (Oleg Shaldybin), 03/18/2011 06:57 AM

Updated by ko1 (Koichi Sasada) almost 13 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

Updated by nobu (Nobuyoshi Nakada) over 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Fixed at r31123. Thank you.

Actions

Also available in: Atom PDF

Like0
Like0Like0