summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/run_program.pm')
-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 a59f7a08b..e5ca7d170 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -119,7 +119,7 @@ sub raw {
} else {
if ($options->{setuid}) {
require POSIX;
- my ($logname, $home) = (getpwuid(501))[0,7];
+ my ($logname, $home) = (getpwuid($options->{setuid}))[0,7];
$ENV{LOGNAME} = $logname if $logname;
# if we were root and are going to drop privilege, keep a copy of the X11 cookie: