summaryrefslogtreecommitdiffstats
path: root/perl-install/security
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-11-20 14:18:28 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-11-20 14:18:28 +0000
commit9f16f554a9638e7c3e3d81e3ab7c80e755a71959 (patch)
tree94614c57afddc195ef430bca9353bc66f5b0b177 /perl-install/security
parentf98177576ded96c74ca1ef9d04674737e4fee404 (diff)
downloaddrakx-9f16f554a9638e7c3e3d81e3ab7c80e755a71959.tar
drakx-9f16f554a9638e7c3e3d81e3ab7c80e755a71959.tar.gz
drakx-9f16f554a9638e7c3e3d81e3ab7c80e755a71959.tar.bz2
drakx-9f16f554a9638e7c3e3d81e3ab7c80e755a71959.tar.xz
drakx-9f16f554a9638e7c3e3d81e3ab7c80e755a71959.zip
simplify
Diffstat (limited to 'perl-install/security')
-rw-r--r--perl-install/security/msec.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/security/msec.pm b/perl-install/security/msec.pm
index bd3cb81eff..ca9d0ac9a 100644
--- a/perl-install/security/msec.pm
+++ b/perl-install/security/msec.pm
@@ -79,7 +79,7 @@ sub get_default {
if ($category eq "functions") {
require security::level;
- $num_level = security::level::get() unless $num_level;
+ $num_level ||= security::level::get();
$default_file = "$::prefix/usr/share/msec/level.".$num_level;
}
elsif ($category eq "checks") { $default_file = "$::prefix/var/lib/msec/security.conf" }