Project

General

Profile

Actions

Bug #1669

closed

FileUtils.cp file mode

Added by anno (Alex Dircksen) almost 16 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
Backport:
[ruby-core:23952]

Description

=begin
Files created by FileUtils.cp (without :preserve => true argument) have the file mode 0600, which (in general) is neither the "default file mode" (according to umask) nor the file mode of the source file.

I guess this is a rather unexpected behavior and was different in Ruby 1.8.x (the destination file would have the same file mode as the source file) - is this intentional?

Tested on:

ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0] (Mac OS X 10.5.7)
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux] (Gentoo Linux, Kernel 2.6.27.10)
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 16 years ago

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

=begin
Applied in changeset r23774.
=end

Actions

Also available in: Atom PDF

Like0
Like0