mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* Fix a couple more mistakes in the code added in 8.36.
This commit is contained in:
@@ -722,7 +722,7 @@ sub postinst {
|
||||
return $postinst unless ref $owninfo;
|
||||
|
||||
# If there is no postinst, let's make one up..
|
||||
$postinst="#!/bin/sh\n" unless defined $postinst;
|
||||
$postinst="#!/bin/sh\n" unless length $postinst;
|
||||
|
||||
my ($firstline, $rest)=split(/\n/, $postinst, 2);
|
||||
if ($firstline !~ m/^#!\s*\/bin\/sh/) {
|
||||
|
||||
@@ -217,7 +217,7 @@ sub unpack {
|
||||
$gid=0;
|
||||
}
|
||||
if (defined($owninfo{$file}) && ($mode & 07000 > 0)) {
|
||||
$modeinfo{$file} = $mode;
|
||||
$modeinfo{$file} = sprintf "%lo", $mode;
|
||||
}
|
||||
next unless -e "$workdir/$file"; # skip broken links
|
||||
if ($> == 0) {
|
||||
|
||||
Reference in New Issue
Block a user