summaryrefslogtreecommitdiff
path: root/dh_installdeb
diff options
context:
space:
mode:
authorjoey <joey>2000-07-21 00:05:35 +0000
committerjoey <joey>2000-07-21 00:05:35 +0000
commit1d3b6f28c9aa8cf91b4f2f644ceeff01352c5b0b (patch)
treeb97fbc3f1952865924b664be1b750f6ba2fd2e0a /dh_installdeb
parenta7afc7fccd48b73037a32e511a219016ba9fee17 (diff)
r360: * Never refer to root, always uid/gid "0". Closes: #67508
Diffstat (limited to 'dh_installdeb')
-rwxr-xr-xdh_installdeb8
1 files changed, 4 insertions, 4 deletions
diff --git a/dh_installdeb b/dh_installdeb
index e0ec36c7..6eddb38f 100755
--- a/dh_installdeb
+++ b/dh_installdeb
@@ -10,7 +10,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$EXT=pkgext($PACKAGE);
if (! -d "$TMP/DEBIAN") {
- doit("install","-o","root","-g","root","-d","$TMP/DEBIAN");
+ doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN");
}
# Install debian install scripts.
@@ -29,7 +29,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
# script.
complex_doit("sed s/#DEBHELPER#// < $f > $TMP/DEBIAN/$file");
}
- doit("chown","root.root","$TMP/DEBIAN/$file");
+ doit("chown","0.0","$TMP/DEBIAN/$file");
doit("chmod",755,"$TMP/DEBIAN/$file");
}
else {
@@ -38,7 +38,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
if (-f "debian/$EXT$file.debhelper") {
complex_doit("echo '#!/bin/sh -e' > $TMP/DEBIAN/$file");
complex_doit("cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file");
- doit("chown","root.root","$TMP/DEBIAN/$file");
+ doit("chown","0.0","$TMP/DEBIAN/$file");
doit("chmod",755,"$TMP/DEBIAN/$file");
}
}
@@ -48,7 +48,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
foreach $file (qw{shlibs conffiles}) {
$f=pkgfile($PACKAGE,$file);
if ($f) {
- doit("install","-o","root","-g","root","-m",644,"-p",$f,"$TMP/DEBIAN/$file");
+ doit("install","-o",0,"-g",0,"-m",644,"-p",$f,"$TMP/DEBIAN/$file");
}
}
}