diff --git a/etc/security b/etc/security index 199b84b7b4b2..1b7b25186a07 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