file permissions when stripping under fakeroot

Siddhesh Poyarekar siddhesh@gotplt.org
Mon Feb 8 12:09:56 GMT 2021


On 2/8/21 4:00 PM, Andreas Schwab wrote:
> On Feb 08 2021, Siddhesh Poyarekar wrote:
> 
>> This sounds like never doing a rename+chown would be the best way to keep
>> everyone happy.  Alan, would you accept such an approach?  That would
>> comprehensively resolve this issue.
>>
>> The downside is that the writing out the result may become noticeably
>> slower for large files.
> 
> It also fails with ETXTBSY when the file is currently being executed.

True, that and the fact that there's the chance of failure while the 
file is being written out (as opposed to the atomic rename) and then 
leaving a corrupt file.  In both cases though, (1) it would have 
happened whenever the rename path wasn't taken and (1) binutils reports 
an error unlike the silent bailout in case of the permissions fixup.

Siddhesh


More information about the Binutils mailing list