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
This commit is contained in:
Maxim Konovalov 2005-09-11 14:29:58 +00:00
parent 5ad14b759d
commit 17793b6ae5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149989

View File

@ -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" \