From e6775c1a34a13801cb165cfc748bfd9e9059757b Mon Sep 17 00:00:00 2001 From: maxim Date: Sun, 11 Sep 2005 14:29:58 +0000 Subject: A new version of rev. 1.4: postpone a temporary file creation until we realize if ipfw(4) ever used. PR: bin/85970 Submitted by: Andre Albsmeier MFC after: 3 days --- etc/periodic/security/550.ipfwlimit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit index 4e5d89e..6c2e1a0 100755 --- a/etc/periodic/security/550.ipfwlimit +++ b/etc/periodic/security/550.ipfwlimit @@ -42,11 +42,11 @@ rc=0 case "$daily_status_security_ipfwlimit_enable" in [Yy][Ee][Ss]) - TMP=`mktemp -t security` IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null` if [ $? -ne 0 ]; then exit 0 fi + TMP=`mktemp -t security` ipfw -a list | grep " log " | \ grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \ awk -v limit="$IPFW_LOG_LIMIT" \ -- cgit v1.1