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;
}
if (defined($owninfo{$file}) && ($mode & 07000 > 0)) {
if (defined($owninfo{$file}) && (($mode & 07000) > 0)) {
$modeinfo{$file} = sprintf "%lo", $mode;
}
if ($> == 0) {