This appears to be fixed in 8.20, now on its way into raring. From the
NEWS file:
cp --no-preserve=mode now no longer preserves the original file's
permissions but correctly sets mode specified by 0666 ~umask
** Changed in: coreutils (Ubuntu)
Status: Confirmed = Fix Released
--
** Changed in: coreutils (Debian)
Status: New = Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/379233
Title:
cp preserves mode with --no-preserve=mode
To manage notifications
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/379233
Title:
cp preserves mode with --no-preserve=mode
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
Regarding comments in debbugs #488024
cp --no-preserve=mode ... should be different to cp ...! This is really
a bug, because the option does not create the new copy with standard new
file permission (not preserving the mode of the original file).
This --no-preserve=mode is a standard use case,
Attatched the patch from Jim Meyering
** Patch added: cp-umask-mode.patch
https://bugs.launchpad.net/coreutils/+bug/379233/+attachment/2052220/+files/cp-umask-mode.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
** Bug watch added: Email to bug-coreutils@gnu #
mailto:bug-coreut...@gnu.org
** Also affects: coreutils via
mailto:bug-coreut...@gnu.org
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
** Changed in: coreutils (Debian)
Status: Unknown = New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/379233
Title:
cp preserves mode with --no-preserve=mode
--
ubuntu-bugs mailing list
** Bug watch added: Debian Bug tracker #488024
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488024
** Also affects: coreutils (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488024
Importance: Unknown
Status: Unknown
** Tags added: udd-find
--
You received
yeah, right a umask setting the exec bit ;-)
** Changed in: coreutils (Ubuntu)
Status: Incomplete = Confirmed
--
cp preserves mode with --no-preserve=mode
https://bugs.launchpad.net/bugs/379233
You received this bug notification because you are a member of Ubuntu
Bugs, which is
Thank you for opening this bug and helping make Ubuntu better. Can you
please state your Ubuntu and coreutils versions?
Also, can you please show an example?
** Changed in: coreutils (Ubuntu)
Status: New = Incomplete
--
cp preserves mode with --no-preserve=mode
Hi there, it's now a vfat fs plugged into a 9.10 system:
ii coreutils 7.4-2ubuntu1 The GNU core utilities
$ ls -l /media/USB/
-rwxr-xr-x 1 test.txt1
-rwxr-xr-x 1 test.txt2
$ cp /media/USB/test.txt1 .
$ ls -l
-rwxr-xr-x 1 test.txt1
$ cp --no-preserve=mode /media/USB/test.file2 .
$
Thank you. Now, the only thing missing is your umask ;-)
I do not have, right now, a vfat I can mount test -- will find where I
stowed one, I *know* I should have it. I tested under an etx4, and it
works as expected.
--
cp preserves mode with --no-preserve=mode
12 matches
Mail list logo