[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5956: [PATCH] cp: preserve "capabilities" when also preserving file
bug#5956: [PATCH] cp: preserve "capabilities" when also preserving file ownership
Fri, 16 Apr 2010 23:12:59 +0100
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20100227 Thunderbird/3.0.3
On 16/04/10 21:13, Jim Meyering wrote:
> Pádraig Brady wrote:
>> `sudo cp -a non-root-file copy` would not preserve capabilities.
>> The attached fixes this and passes all tests.
>> Subject: [PATCH] cp: preserve "capabilities" when also preserving file
>> * src/copy.c (copy_reg): Copy xattrs _after_ setting file ownership
>> so that capabilities are not cleared when setting ownership.
>> * tests/cp/capability: A new root test.
>> * tests/Makefile.am (root_tests): Reference the new test.
>> * NEWS: Mention the fix.
> Good catch!
> The patch looks fine.
> Some tiny suggestions:
Thanks for the review.
I've just pushed that.