summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/run_program.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 7288ef816..9bba5f0a1 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -198,10 +198,7 @@ sub raw {
my $home;
if ($options->{as_user}) {
- my $uid;
- $uid = $ENV{PKEXEC_UID};
- $uid ||= common::get_parent_uid();
- $options->{setuid} = $uid;
+ $options->{setuid} = $ENV{PKEXEC_UID} ||= common::get_parent_uid();;
}
my $args = $options->{sensitive_arguments} ? '<hidden arguments>' : join(' ', @args);