diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-02-11 14:57:12 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-02-11 14:57:12 +0000 |
commit | 6ef45bf8bfc612edf1d19f53b299d43342c53ccb (patch) | |
tree | fd59d5612d7471d7abd359908840c2af0d990ab3 /perl-install/run_program.pm | |
parent | 5262467c1206558e55d891c49b9e6c643fb47c6a (diff) | |
download | drakx-6ef45bf8bfc612edf1d19f53b299d43342c53ccb.tar drakx-6ef45bf8bfc612edf1d19f53b299d43342c53ccb.tar.gz drakx-6ef45bf8bfc612edf1d19f53b299d43342c53ccb.tar.bz2 drakx-6ef45bf8bfc612edf1d19f53b299d43342c53ccb.tar.xz drakx-6ef45bf8bfc612edf1d19f53b299d43342c53ccb.zip |
run_program: use home and logname of user we are dropping privileges to, not 501
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r-- | perl-install/run_program.pm | 2 |
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: |