coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp preserves mode with --no-preserve=mode


From: Ondrej Oprala
Subject: cp preserves mode with --no-preserve=mode
Date: Mon, 6 Aug 2012 07:29:17 -0400 (EDT)

Hi, I'd like to propose a fix for a bug mentioned in the redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=755508
The patch adds another boolean instead of a proposed tristate, thus not
upsetting any existing code.
Also, if the behaviour proposed in the bugzilla entry when --no-preserve=mode 
option
is specified is correct, I think the last test in cp/link-preserve should be 
changed.
Shouldn't the --no-preserve=mode always create permissions of 0666 & ~umask? 
The test
seems to assume that a 0777 & ~umask mode should be set.

Cheers,
  Ondrej

Attachment: DIFF
Description: application/mbox


reply via email to

[Prev in Thread] Current Thread [Next in Thread]