summaryrefslogtreecommitdiffstats
path: root/perl-install/security
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/security')
-rw-r--r--perl-install/security/various.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/security/various.pm b/perl-install/security/various.pm
index 7d63c7fdc..23b9174ef 100644
--- a/perl-install/security/various.pm
+++ b/perl-install/security/various.pm
@@ -6,9 +6,10 @@ use strict;
use common;
sub config_libsafe {
+ my $setting = @_ > 1;
my ($prefix, $libsafe) = @_;
my %t = getVarsFromSh("$prefix/etc/sysconfig/system");
- if (@_ > 1) {
+ if ($setting) {
$t{LIBSAFE} = bool2yesno($libsafe);
setVarsInSh("$prefix/etc/sysconfig/system", \%t);
}
@@ -16,9 +17,10 @@ sub config_libsafe {
}
sub config_security_user {
+ my $setting = @_ > 1;
my ($prefix, $sec_user) = @_;
my %t = getVarsFromSh("$prefix/etc/security/msec/security.conf");
- if (@_ > 1) {
+ if ($setting) {
$t{MAIL_USER} = $sec_user;
setVarsInSh("$prefix/etc/security/msec/security.conf", \%t);
}