summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorTiago Salem Herrmann <salem@mandriva.com.br>2008-04-07 13:51:13 +0000
committerTiago Salem Herrmann <salem@mandriva.com.br>2008-04-07 13:51:13 +0000
commit4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab (patch)
treeca1c109b323ec6c095d986ea14e49a3f8e5b295d /perl-install
parent9f4470a49cc77849ac3b2605a8559350efbcee9a (diff)
downloaddrakx-4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab.tar
drakx-4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab.tar.gz
drakx-4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab.tar.bz2
drakx-4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab.tar.xz
drakx-4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab.zip
- add a fallback when setting $ENV{'LOGNAME'}
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});
}