mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
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:
parent
5ad14b759d
commit
17793b6ae5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149989
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user