]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installcron
r360: * Never refer to root, always uid/gid "0". Closes: #67508
[debhelper.git] / dh_installcron
index 7f23bc45f4d438f974f6c537dbbe998978cb5bbc..47ef6943a40a3e5249a602664c5851f7bca0a861 100755 (executable)
@@ -11,8 +11,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                $cron=pkgfile($PACKAGE,"cron.$type");
                if ($cron) {
                        if (! -d "$TMP/etc/cron.$type") {
-                               doit("install","-o","root","-g","root","-d",
-                                    "$TMP/etc/cron.$type");
+                               doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.$type");
                        }
                        doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE");
                }
@@ -21,8 +20,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        $cron=pkgfile($PACKAGE,"cron.d");
        if ($cron) {
                if (! -d "$TMP/etc/cron.d") {
-                       doit("install","-o","root","-g","root","-d",
-                            "$TMP/etc/cron.d");
+                       doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.d");
                }       
                doit("install","-m",644,$cron,"$TMP/etc/cron.d/$PACKAGE");
        }