summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/run_program.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index a891754b0..c75c4d6bb 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -111,7 +111,7 @@ sub raw {
} else {
if ($options->{setuid}) {
require POSIX;
- $ENV{'LOGNAME'} = $options->{setuid};
+ $ENV{'LOGNAME'} = $options->{setuid} || $ENV{LOGNAME};
POSIX::setuid($options->{setuid});
}