bug-coreutils
[Top][All Lists]
Advanced

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

bug#31675: Existing directories and files permissions are not being kept


From: Paul Eggert
Subject: bug#31675: Existing directories and files permissions are not being kept intact
Date: Sun, 3 Jun 2018 15:49:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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.





reply via email to

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