summaryrefslogtreecommitdiff
path: root/dh_installdocs
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_installdocs
parenta7afc7fccd48b73037a32e511a219016ba9fee17 (diff)
r360: * Never refer to root, always uid/gid "0". Closes: #67508
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs16
1 files changed, 8 insertions, 8 deletions
diff --git a/dh_installdocs b/dh_installdocs
index ad50423..5a3ef70 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -15,7 +15,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
# If this is a symlink, leave it alone.
if ( ! -d "$TMP/usr/share/doc/$PACKAGE" &&
! -l "$TMP/usr/share/doc/$PACKAGE") {
- doit("install","-g","root","-o","root","-d","$TMP/usr/share/doc/$PACKAGE");
+ doit("install","-g",0,"-o",0,"-d","$TMP/usr/share/doc/$PACKAGE");
}
undef @docs;
@@ -30,7 +30,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
if (@docs) {
doit("cp", "-a",@docs,"$TMP/usr/share/doc/$PACKAGE/");
- doit("chown","-R","root.root","$TMP/usr/share/doc");
+ doit("chown","-R","0.0","$TMP/usr/share/doc");
doit("chmod","-R","go=rX","$TMP/usr/share/doc");
doit("chmod","-R","u+rw","$TMP/usr/share/doc");
}
@@ -41,18 +41,18 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$readme_debian=pkgfile($PACKAGE,'README.debian');
}
if ($readme_debian) {
- doit("install","-g","root","-o","root","-m","644","-p","$readme_debian",
+ doit("install","-g",0,"-o",0,"-m","644","-p","$readme_debian",
"$TMP/usr/share/doc/$PACKAGE/README.Debian");
}
$todo=pkgfile($PACKAGE,'TODO');
if ($todo) {
if (isnative($PACKAGE)) {
- doit("install","-g","root","-o","root","-m","644","-p",$todo,
+ doit("install","-g",0,"-o",0,"-m","644","-p",$todo,
"$TMP/usr/share/doc/$PACKAGE/TODO");
}
else {
- doit("install","-g","root","-o","root","-m","644","-p",$todo,
+ doit("install","-g",0,"-o",0,"-m","644","-p",$todo,
"$TMP/usr/share/doc/$PACKAGE/TODO.Debian");
}
}
@@ -65,7 +65,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$copyright="debian/copyright";
}
if ($copyright) {
- doit("install","-g","root","-o","root","-m","644","-p",$copyright,
+ doit("install","-g",0,"-o",0,"-m","644","-p",$copyright,
"$TMP/usr/share/doc/$PACKAGE/copyright");
}
@@ -106,11 +106,11 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
if (%doc_ids) {
if (! -d "$TMP/usr/share/doc-base/") {
- doit("install","-g","root","-o","root","-d","$TMP/usr/share/doc-base/");
+ doit("install","-g",0,"-o",0,"-d","$TMP/usr/share/doc-base/");
}
}
foreach my $fn (keys %doc_ids) {
- doit("install","-g","root","-o","root","-m644","-p","debian/$fn",
+ doit("install","-g",0,"-o",0,"-m644","-p","debian/$fn",
"$TMP/usr/share/doc-base/$doc_ids{$fn}");
if (! $dh{NOSCRIPTS}) {
autoscript($PACKAGE,"postinst","postinst-doc-base",