diff options
author | Gavin Carr <gonzai@users.sourceforge.net> | 2007-03-16 12:11:46 +0000 |
---|---|---|
committer | Gavin Carr <gonzai@users.sourceforge.net> | 2007-03-16 12:11:46 +0000 |
commit | 8d0e8a652f3c729b1c07c821695188af395f6c24 (patch) | |
tree | 8bd3670f6868e3ab90ae2c0657d2215fce64f48d /plugins-scripts/check_ifoperstatus.pl | |
parent | 76cc1b75dd2e9a0f2e9c4a047429cb1acd733272 (diff) | |
download | monitoring-plugins-8d0e8a652f3c729b1c07c821695188af395f6c24.tar.gz |
Fix bogus 'eq ( || )' constructions in check_ifoperstatus.pl.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1642 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/check_ifoperstatus.pl')
-rw-r--r-- | plugins-scripts/check_ifoperstatus.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index 59356bd7..62891ff7 100644 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl @@ -384,15 +384,15 @@ sub process_arguments() { if (defined $seclevel && defined $secname) { # Must define a security level even though defualt is noAuthNoPriv - unless ($seclevel eq ('noAuthNoPriv' || 'authNoPriv' || 'authPriv' ) ) { + unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) { usage(); exit $ERRORS{"UNKNOWN"}; } # Authentication wanted - if ($seclevel eq ('authNoPriv' || 'authPriv') ) { + if ( $seclevel eq 'authNoPriv' || $seclevel eq 'authPriv' ) { - unless ($authproto eq ('MD5' || 'SHA1') ) { + unless ( $authproto eq 'MD5' || $authproto eq 'SHA1' ) { usage(); exit $ERRORS{"UNKNOWN"}; } |