From: Alex Dircksen Date: 2009-06-21T10:01:12+09:00 Subject: [ruby-core:23952] [Bug #1669] FileUtils.cp file mode Bug #1669: FileUtils.cp file mode http://redmine.ruby-lang.org/issues/show/1669 Author: Alex Dircksen Status: Open, Priority: Normal Category: lib ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux] 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) ---------------------------------------- http://redmine.ruby-lang.org