From b550f7176f7a249c978a15c528a4105d4334e48c Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 14 Sep 2001 11:18:06 +0000 Subject: [PATCH] Handle the absence of net.inet6.ip6.fw.verbose_limit better --- etc/security | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/security b/etc/security index e7ebcb48e899..199b84b7b4b2 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