git-svn-id: http://emdebian.org/svn/current@8320 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2012-04-17 20:40:13 +00:00
parent 1551d665d6
commit 78ec7d93a9

View file

@ -275,7 +275,7 @@ if ((defined $k) and (not defined $noauth)) {
# and apt refuses to allow fakeroot to do this. # and apt refuses to allow fakeroot to do this.
$str = ""; $str = "";
if (not exists $ENV{FAKEROOTKEY}) { if (not exists $ENV{FAKEROOTKEY}) {
if ((exists $ENV{USER}) and ($ENV{USER} != "root")) { if ((exists $ENV{USER}) and ($ENV{USER} ne "root")) {
$str = "sudo" if (-f "/usr/bin/sudo"); $str = "sudo" if (-f "/usr/bin/sudo");
} }
} else { } else {