summaryrefslogtreecommitdiffstats
path: root/perl-install/security/level.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-16 13:29:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-16 13:29:19 +0000
commit2ff8d37f7c51c03e37638c37e030e060d2c34669 (patch)
treec72f5c3597f86bd98cde9765692820dc4af7b89e /perl-install/security/level.pm
parente78fb4780e2059e155ec011dbefe71dd665cf7be (diff)
downloaddrakx-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar
drakx-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.gz
drakx-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.bz2
drakx-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.xz
drakx-2ff8d37f7c51c03e37638c37e030e060d2c34669.zip
replace occurences of "$foo ? $foo : $bar" with "$foo || $bar"
Diffstat (limited to 'perl-install/security/level.pm')
-rw-r--r--perl-install/security/level.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/security/level.pm b/perl-install/security/level.pm
index e6ac8876c..1b2ef136d 100644
--- a/perl-install/security/level.pm
+++ b/perl-install/security/level.pm
@@ -39,9 +39,9 @@ sub set {
my %sec_levels = reverse %level_list;
my $run_level = $sec_levels{$_[0]};
print "set level: $_[0] -> $run_level\n";
- print $::prefix, "/usr/sbin/msec ", $run_level ? $run_level : 3, "\n";
+ print $::prefix, "/usr/sbin/msec ", $run_level || 3, "\n";
require run_program;
- run_program::rooted($::prefix, "/usr/sbin/msec", $run_level ? $run_level : 3);
+ run_program::rooted($::prefix, "/usr/sbin/msec", $run_level || 3);
}
sub level_choose {