From 9f16f554a9638e7c3e3d81e3ab7c80e755a71959 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 20 Nov 2002 14:18:28 +0000 Subject: simplify --- perl-install/security/msec.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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" } -- cgit v1.2.1