From a320ae144c0bc324992c914a35ee3b38733b51ab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 17 May 2010 20:48:54 -0400 Subject: [PATCH] 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!) --- Alien/Package/Rpm.pm | 2 +- debian/changelog | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Alien/Package/Rpm.pm b/Alien/Package/Rpm.pm index c842419..39d54a4 100644 --- a/Alien/Package/Rpm.pm +++ b/Alien/Package/Rpm.pm @@ -271,7 +271,7 @@ sub unpack { } $gid=0; } - if (defined($owninfo{$file}) && ($mode & 07000 > 0)) { + if (defined($owninfo{$file}) && (($mode & 07000) > 0)) { $modeinfo{$file} = sprintf "%lo", $mode; } if ($> == 0) { diff --git a/debian/changelog b/debian/changelog index cb3a880..f19cb02 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,11 @@ alien (8.81) UNRELEASED; urgency=low (Patch by unnamed person on some bug tracking system I don't frequent.) * Suggest lzma. If not installed, alien will still fail to decompress 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 Wed, 28 Apr 2010 11:29:19 -0400