From: joey Date: Tue, 17 Aug 1999 05:09:12 +0000 (+0000) Subject: r167: Initial Import X-Git-Tag: debian_version_0_1~74 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3dd7efa761f4067529ed7c6785dadaa8ec4c89d4;p=debhelper.git r167: Initial Import --- diff --git a/debian/changelog b/debian/changelog index 6b36d7b..4af4fb8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (1.2.31) unstable; urgency=low + + * dh_installinit.1: minor typo fix (closes: #32753) + + -- Joey Hess Tue, 2 Feb 1999 14:32:46 -0800 + debhelper (1.2.30) unstable; urgency=low * dh_fixperms: cut down the number of chmod commands that are executed diff --git a/dh_suidregister b/dh_suidregister index d5b10eb..15b1fe4 100755 --- a/dh_suidregister +++ b/dh_suidregister @@ -49,7 +49,15 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { (undef,undef,$mode,undef,$uid,$gid,undef) = stat("$TMP/$file"); # Now come up with the user and group names for the uid and gid. $user=getpwuid($uid); + if (! defined $user) { + warning("$file has odd uid $uid, not in /etc/passwd"); + $user=$uid; + } $group=getgrgid($gid); + if (! defined $group) { + warning("$file has odd gid $gid not in /etc/group"); + $group=$gid; + } # Note that I have to print mode in ocal, stripping file type. $sedstr=sprintf("s:#FILE#:$file:;s/#PACKAGE#/$PACKAGE/;s/#OWNER#/$user/;s/#GROUP#/$group/;s/#PERMS#/%#o/", $mode & 07777);