bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: copy.c destination permissions lost when backup speci


From: Jim Meyering
Subject: Re: [PATCH] tests: copy.c destination permissions lost when backup specified
Date: Mon, 30 Mar 2009 14:23:46 +0200

Eric Blake wrote:
> According to Jim Meyering on 3/30/2009 6:14 AM:
>>> I give great value for backups, but still I would like to see new and
>>> old destination files to have same permissions. Of course when
>>> --preserve is specified expectation is changed; source permission
>>> should appear for the new file.
>>>
>>> Am I only one thinking this way?
>>
>> Perhaps.
>> In any case, this behavior dates back to the invention of the --backup
>> option over 17 years ago.
>>
>> Sorry, but I see no reason to change it.
>
> There is no reason to change the semantics of an existing option.
> However, there has been list discussion of adding an option to cp that
> will preserve as many attributes as possible (better than what you
> currently get with 'touch --reference'); perhaps if that new option is
> ever written, it can be used in concert with --backup to get the semantics
> you want?

Good point.
Thanks for putting that in context.




reply via email to

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