bug-tar
[Top][All Lists]
Advanced

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

Re: tar -x --xattr with read-only files


From: Paul Eggert
Subject: Re: tar -x --xattr with read-only files
Date: Fri, 26 Aug 2022 17:39:29 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/25/22 07:23, Lukas Javorsky wrote:
[1] https://www.mail-archive.com/bug-tar@gnu.org/msg05904.html
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1886540

Thanks for reminding me about that. Although that patch helps, I don't think it's a complete fix. I installed the attached instead; please give these patches a try. The first one's more important.

It seems odd that we must use mknodat here. Why can't we create the file using openat with O_CREAT|O_TRUNC|O_EXCL instead? That would be simpler. Is it some weird limitation of xattr? Perhaps should be a comment if so.

Attachment: 0001-Fix-bug-with-x-xattr-read-only-files.patch
Description: Text Data

Attachment: 0002-Do-not-diagnose-same-xattr-file-twice.patch
Description: Text Data


reply via email to

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