summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2008-01-16 14:19:29 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2008-01-16 14:19:29 +0000
commit74ba3d51940e2afb9e8c1329b2c54da78ed1a5dd (patch)
tree9212498b99cec9abe98a11f32dce287f75c8debc
parentbbde016be815c6f985a24d3a9c73d7338d455d0c (diff)
create pflog0 whenever pf is enabled, not just when pflogd_flags!=NO
fixes spamlogd with pflogd disabled. ok henning
-rw-r--r--etc/rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index e7241e02956..e4c092c9e3e 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.309 2008/01/09 21:38:19 mpf Exp $
+# $OpenBSD: rc,v 1.310 2008/01/16 14:19:28 sthen Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -298,11 +298,13 @@ if [ -d /var/empty ]; then
fi
syslogd ${syslogd_flags}
-if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
+if [ X"${pf}" != X"NO" ]; then
ifconfig pflog0 create >/dev/null 2>&1
if ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 up
- pflogd ${pflogd_flags}
+ if [ X"${pflogd_flags}" != X"NO" ]; then
+ pflogd ${pflogd_flags}
+ fi
fi
fi