diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 22:20:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 22:20:22 +0000 |
commit | 22ad938758373ec4e2f8490d62f2cdc237d50d7c (patch) | |
tree | 7848808920e41e4bbdee22867646139e7a907099 /perl-install/security | |
parent | bfd84f6e2df1b083c8d95f6f8a84ede73d36dfea (diff) | |
download | drakx-backup-do-not-use-22ad938758373ec4e2f8490d62f2cdc237d50d7c.tar drakx-backup-do-not-use-22ad938758373ec4e2f8490d62f2cdc237d50d7c.tar.gz drakx-backup-do-not-use-22ad938758373ec4e2f8490d62f2cdc237d50d7c.tar.bz2 drakx-backup-do-not-use-22ad938758373ec4e2f8490d62f2cdc237d50d7c.tar.xz drakx-backup-do-not-use-22ad938758373ec4e2f8490d62f2cdc237d50d7c.zip |
- replace ... =~ 'foo' with ... =~ /foo/
- remove unneeded parentheses for things like ... if (...)
Diffstat (limited to 'perl-install/security')
-rw-r--r-- | perl-install/security/main.pm | 2 | ||||
-rw-r--r-- | perl-install/security/msec.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/security/main.pm b/perl-install/security/main.pm index 40dae3daf..ba15e01c2 100644 --- a/perl-install/security/main.pm +++ b/perl-install/security/main.pm @@ -57,7 +57,7 @@ sub basic_seclevel_option { my @sec_levels = $msec->get_seclevel_list(); my $current_level = $msec->get_secure_level(); - push(@sec_levels, $current_level) if ($current_level eq "Dangerous" || $current_level eq "Poor"); + push(@sec_levels, $current_level) if $current_level eq "Dangerous" || $current_level eq "Poor"; $$seclevel_entry->entry->set_editable(0); $$seclevel_entry->set_popdown_strings(@sec_levels); diff --git a/perl-install/security/msec.pm b/perl-install/security/msec.pm index 94af85fa3..33d7fd76d 100644 --- a/perl-install/security/msec.pm +++ b/perl-install/security/msec.pm @@ -195,7 +195,7 @@ sub get_functions { (undef, $function) = split(/ /, $_); ($function, undef) = split(/\(/, $function); if (!(member($function, @ignore_list))) { - push(@functions, $function) if (member($function, @{$options{$category}})); + push(@functions, $function) if member($function, @{$options{$category}}); } } } @@ -250,7 +250,7 @@ sub get_default_checks { open F, $check_file; while (<F>) { ($check, undef) = split(/=/, $_); - push @checks, $check if (!(member($check, qw(MAIL_USER)))) + push @checks, $check if !(member($check, qw(MAIL_USER))) } close F; } |