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 199b84b..1b7b251 100644
--- a/etc/security
+++ b/etc/security
@@ -151,7 +151,7 @@ fi
# Show ipfw rules which have reached the log limit
#
IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
-if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then
+if [ $? -eq 0 ] && [ "${IPFW_LOG_LIMIT}" -ne 0 ]; then
ipfw -a l | grep " log " | perl -n -e \
'/^\d+\s+(\d+)/; print if ($1 >= '$IPFW_LOG_LIMIT')' > ${TMP}
if [ -s "${TMP}" ]; then
OpenPOWER on IntegriCloud