git-svn-id: http://emdebian.org/svn/current@8320 563faec7-e20c-0410-992a-a66f704d0ccd
main
codehelp 12 years ago
parent 1551d665d6
commit 78ec7d93a9

@ -275,7 +275,7 @@ if ((defined $k) and (not defined $noauth)) {
# and apt refuses to allow fakeroot to do this.
$str = "";
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");
}
} else {

Loading…
Cancel
Save