summaryrefslogtreecommitdiffstats
path: root/etc/security
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-10-04 14:54:34 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-10-04 14:54:34 +0000
commit88b54a2b95b219c85057bcc1a5ba4a2c18515ab0 (patch)
tree2aa73ceaa93946815e0652066e95b56f93b5d1f0 /etc/security
parent706dbd2d85d74c14707aead14300f4a0267b446e (diff)
downloadFreeBSD-src-88b54a2b95b219c85057bcc1a5ba4a2c18515ab0.zip
FreeBSD-src-88b54a2b95b219c85057bcc1a5ba4a2c18515ab0.tar.gz
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
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index f56073f..ac70d0c 100644
--- a/etc/security
+++ b/etc/security
@@ -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}
OpenPOWER on IntegriCloud