From 1446f4ac0b364c041d7de0e5a186e9709a300388 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 3 Jun 2016 17:40:42 +0200 Subject: uid guess: fix the fallback (mga#18288) (when the helper didn't provide the real UID) --- perl-install/run_program.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/run_program.pm') diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm index fc73c294a..0b5776a2d 100644 --- a/perl-install/run_program.pm +++ b/perl-install/run_program.pm @@ -201,8 +201,8 @@ sub raw { my $uid; $uid = $ENV{USERHELPER_UID} && getpwuid($ENV{USERHELPER_UID}); $uid ||= common::get_parent_uid(); - $options->{setuid} = getpwnam($uid) if $uid; my ($full_user) = grep { $_->[2] eq $uid } list_passwd(); + $options->{setuid} = getpwnam($full_user->[0]) if $full_user->[0]; $home = $full_user->[7] if $full_user; } local $ENV{HOME} = $home if $home; -- cgit v1.2.1