GNU bug report logs -
#31675
Existing directories and files permissions are not being kept intact
Previous Next
Reported by: Gunjan Gupta <viraniac <at> gmail.com>
Date: Fri, 1 Jun 2018 07:41:02 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #21 received at 31675 <at> debbugs.gnu.org (full text, mbox):
Pádraig Brady wrote:
> This is a little surprising as cp didn't create /destination/dir in this case.
> However if it did create that dir, then the mode would be expected.
> So cp is keeping the destination consistent whether it previously existed or not.
Sorry, but I am not following this analysis. The --no-preserve=mode option says
"do not copy the mode of the source to the destination", and yet cp is copying
the mode of the source to the destination. How is that not a bug?
A longer analysis: the documentation for --preserve says what should happen in
the absence of the --preserve option (namely, that permissions of existing
destinations are unchanged), and --no-preserve=mode is pretty clearly equivalent
to the absence of --preserve=mode.
So I don't see how the current behavior can be considered to match the
documentation. I don't see how it'd be that useful, either.
This bug report was last modified 7 years and 45 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.