summaryrefslogtreecommitdiffstats
path: root/perl-install/security/various.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-17 11:34:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-17 11:34:32 +0000
commit4781e491c32fdfe0dbe3cf97a8aca90040a9406b (patch)
treeca4f166763cc8be7bc01e943dcbf5a058758060d /perl-install/security/various.pm
parent5458ef92ec80fab427e4d69b5cdd22bb76b261d8 (diff)
downloaddrakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.gz
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.bz2
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.xz
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.zip
new perl_checker compliance
Diffstat (limited to 'perl-install/security/various.pm')
-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);
}