summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/security2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/security b/etc/security
index e7ebcb4..199b84b 100644
--- a/etc/security
+++ b/etc/security
@@ -185,7 +185,7 @@ fi
# Show ip6fw rules which have reached the log limit
#
IP6FW_LOG_LIMIT=`sysctl -n net.inet6.ip6.fw.verbose_limit 2> /dev/null`
-if [ $? -eq 0 -a "${IP6FW_LOG_LIMIT}" -ne 0 ]; then
+if [ $? -eq 0 ] && [ "${IP6FW_LOG_LIMIT}" -ne 0 ]; then
ip6fw -a l | grep " log " | perl -n -e \
'/^\d+\s+(\d+)/; print if ($1 >= '$IP6FW_LOG_LIMIT')' > ${TMP}
if [ -s "${TMP}" ]; then
OpenPOWER on IntegriCloud