summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-10-03 11:57:43 +0000
committermux <mux@FreeBSD.org>2003-10-03 11:57:43 +0000
commitc2551825aff9db4cc01379a0b31fa5682003765c (patch)
treef1378c88f45cbf1fde4eed3caa30b66b8de766c2 /etc/rc.d
parentf4dc9f80e3eb0bb819f6cf8da10abae8e74e02b0 (diff)
downloadFreeBSD-src-c2551825aff9db4cc01379a0b31fa5682003765c.zip
FreeBSD-src-c2551825aff9db4cc01379a0b31fa5682003765c.tar.gz
Fix bogon in ipfilter_resync() introduced in my last commit.
Spotted by: Gennady Proskurin <gpr@nvnpp.vrn.ru>
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ipfilter4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter
index f6dab79..eec5a64 100755
--- a/etc/rc.d/ipfilter
+++ b/etc/rc.d/ipfilter
@@ -164,7 +164,9 @@ ipfilter_resync()
case ${OSTYPE} in
FreeBSD)
# Don't resync if ipfilter is not loaded
- [ kldstat -v | grep "IP Filter" > /dev/null 2>&1 ] && return
+ if ! kldstat -v | grep "IP Filter" > /dev/null 2>&1; then
+ return
+ fi
;;
esac
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
OpenPOWER on IntegriCloud