From 4c49727cb4204e8ffa4170238eeb2f4bfd31e8ab Mon Sep 17 00:00:00 2001 From: Tiago Salem Herrmann Date: Mon, 7 Apr 2008 13:51:13 +0000 Subject: - add a fallback when setting $ENV{'LOGNAME'} --- perl-install/run_program.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); } -- cgit v1.2.1