]> git.donarmstrong.com Git - debhelper.git/commitdiff
r167: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:09:12 +0000 (05:09 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:09:12 +0000 (05:09 +0000)
debian/changelog
dh_suidregister

index 6b36d7b097046a5afbd3fd011bac84166288eed5..4af4fb842da7060e175a6bbcd6b86fd1c009c7d6 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (1.2.31) unstable; urgency=low
+
+  * dh_installinit.1: minor typo fix (closes: #32753)
+
+ -- Joey Hess <joeyh@master.debian.org>  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
index d5b10ebd33ae05392bc40c474bff3c1e829a2b83..15b1fe4d616b3e7db38932df6ede3d71d40664f1 100755 (executable)
@@ -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);