Fix precedence problem that prevented alien from preserving permissions of suid/sgid binaries that are not owned by root.

(Patch by Duane Waddle, on a bug tracking system I don't frequent, that was
about the "expire" it 4 days from now. We got lucky Duane, but please use
the Debian BTS next time!)
This commit is contained in:
Joey Hess
2010-05-17 20:48:54 -04:00
parent f6529d9be0
commit a320ae144c
2 changed files with 6 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ sub unpack {
} }
$gid=0; $gid=0;
} }
if (defined($owninfo{$file}) && ($mode & 07000 > 0)) { if (defined($owninfo{$file}) && (($mode & 07000) > 0)) {
$modeinfo{$file} = sprintf "%lo", $mode; $modeinfo{$file} = sprintf "%lo", $mode;
} }
if ($> == 0) { if ($> == 0) {

5
debian/changelog vendored
View File

@@ -7,6 +7,11 @@ alien (8.81) UNRELEASED; urgency=low
(Patch by unnamed person on some bug tracking system I don't frequent.) (Patch by unnamed person on some bug tracking system I don't frequent.)
* Suggest lzma. If not installed, alien will still fail to decompress * Suggest lzma. If not installed, alien will still fail to decompress
RPMs using it, but will support most rpms, which are not. RPMs using it, but will support most rpms, which are not.
* Fix precedence problem that prevented alien from preserving permissions
of suid/sgid binaries that are not owned by root.
(Patch by Duane Waddle, on a bug tracking system I don't frequent, that
was about the "expire" it 4 days from now. We got lucky Duane, but please
use the Debian BTS next time!)
-- Joey Hess <joeyh@debian.org> Wed, 28 Apr 2010 11:29:19 -0400 -- Joey Hess <joeyh@debian.org> Wed, 28 Apr 2010 11:29:19 -0400