]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Avoid fchown(2) failure.
authorAlexander Bluhm <alexander.bluhm@gmx.net>
Tue, 5 Oct 2021 21:33:16 +0000 (23:33 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Oct 2021 17:49:41 +0000 (20:49 +0300)
commit892b16cc282f5b4e1c49871b326f4db25c5b4d81
treecec88fc36db0d7959682bf95ada3548f2c085e68
parent2b509c868cae3988bf21cd693fbf9021cdc85628
xz: Avoid fchown(2) failure.

OpenBSD does not allow to change the group of a file if the user
does not belong to this group.  In contrast to Linux, OpenBSD also
fails if the new group is the same as the old one.  Do not call
fchown(2) in this case, it would change nothing anyway.

This fixes an issue with Perl Alien::Build module.
https://github.com/PerlAlien/Alien-Build/issues/62
src/xz/file_io.c