file permissions when stripping under fakeroot
Siddhesh Poyarekar
siddhesh@gotplt.org
Sat Feb 6 17:11:49 GMT 2021
On 2/6/21 10:26 PM, Allan McRae via Binutils wrote:
> On 7/2/21 2:20 am, Allan McRae via Binutils wrote:
>> With binutils 2.36.1, I notice a change of behaviour under fakeroot when
>> stripping files.
>>
>> With binutils-2.36 (and earlier):
>>
>> $ fakeroot
>> $ ls -l
>> -rwxr-xr-x 1 root root 16088 Feb 7 02:06 hello
>> $ strip hello
>> $ ls -l
>> -rwxr-xr-x 1 root root 14408 Feb 7 02:06 hello
>>
>>
>> With binutils-2.36.1:
>>
>> $ fakeroot
>> $ ls -l
>> -rwxr-xr-x 1 root root 16088 Feb 7 02:08 hello
>> $ strip hello
>> $ ls -l
>> -rwxr-xr-x 1 allan allan 14408 Feb 7 02:08 hello
>>
>>
>> Is this a binutils issue, or a fakeroot issue exposed by binutils
>> changes? Either way, distributions that package under fakeroot are in
>> for some fun as files will be owned by the build user GID and not root.
>>
>
> The following commit is the first to have this issue:
>
> Revert "binutils: Make smart_rename safe too"
>
> https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=355e5f2ffbc0db0c6db77586d879553b72958187
I'm afraid I can't reproduce this on Fedora off the 2.36.1 tag or off
master. Could you let me know the fakeroot version+distro you're using?
Thanks,
Siddhesh
More information about the Binutils
mailing list