summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Makefile.config2
-rw-r--r--perl-install/NEWS4
-rw-r--r--perl-install/run_program.pm2
3 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/Makefile.config b/perl-install/Makefile.config
index 741bf03d5..c0a01766c 100644
--- a/perl-install/Makefile.config
+++ b/perl-install/Makefile.config
@@ -1,5 +1,5 @@
# -*- Makefile -*-
-VERSION:=12.77.5
+VERSION:=12.77.6
SUDO = sudo
TMPDIR = /tmp
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 8f7f85220..00ecc5a30 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,7 @@
+Version 12.77.6 - 11 February 2010
+- run_program:
+ o use home and logname of user we are dropping privileges to, not 501
+
Version 12.77.5 - 04 February 2010
- diskdrake:
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: