summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-09-18 00:03:48 +0000
committerfenner <fenner@FreeBSD.org>2001-09-18 00:03:48 +0000
commit063f15de1d397c44fc81e5fa3e63eb49ed305bb5 (patch)
tree08d0a157f16eb685f12dba34d30255f54586211f /etc
parente501f2bbb2a7cc73152c5573252dfe984e0e6bf9 (diff)
downloadFreeBSD-src-063f15de1d397c44fc81e5fa3e63eb49ed305bb5.zip
FreeBSD-src-063f15de1d397c44fc81e5fa3e63eb49ed305bb5.tar.gz
Handle the absence of net.inet.ip.fw.verbose_limit better, just like
brian's fix for v6 in rev 1.56.
Diffstat (limited to 'etc')
-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