summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
authorTiago Salem Herrmann <salem@mandriva.com.br>2008-05-28 13:37:27 +0000
committerTiago Salem Herrmann <salem@mandriva.com.br>2008-05-28 13:37:27 +0000
commit5a2a85f442a06b019baa2bb71ff069b49387affc (patch)
tree642b00b2eb6a8061ba5eb7dcae77414b382dfa2f /perl-install/run_program.pm
parent240ee3a7378d3fb8f6c76b7656c7462c9feb1754 (diff)
downloaddrakx-backup-do-not-use-5a2a85f442a06b019baa2bb71ff069b49387affc.tar
drakx-backup-do-not-use-5a2a85f442a06b019baa2bb71ff069b49387affc.tar.gz
drakx-backup-do-not-use-5a2a85f442a06b019baa2bb71ff069b49387affc.tar.bz2
drakx-backup-do-not-use-5a2a85f442a06b019baa2bb71ff069b49387affc.tar.xz
drakx-backup-do-not-use-5a2a85f442a06b019baa2bb71ff069b49387affc.zip
- fix LOGNAME to be able to use a running firefox instance to fill a bug #31109
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 c75c4d6bb..0f84b9087 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};
+ $ENV{'LOGNAME'} = getpwuid($options->{setuid}) || $ENV{LOGNAME};
POSIX::setuid($options->{setuid});
}