The previous commit missed two unquoted variable expansions. This had

the unfortunate side-effect of breaking the security script for hosts
without kernel support for IPFW. Fix.

Reported by:	jhay
This commit is contained in:
Sheldon Hearn 1999-10-04 14:54:34 +00:00
parent 576642ef6f
commit 023fff94a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51932

View file

@ -78,10 +78,10 @@ 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 -a "${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
if [ -s "${TMP}" ]; then
separator
echo "ipfw log limit reached:"
cat ${TMP}