Fix spamlogd's rc_pre to avoid creating pflog0 if spamd is disabled.
authorsthen <sthen@openbsd.org>
Mon, 11 Apr 2022 09:32:20 +0000 (09:32 +0000)
committersthen <sthen@openbsd.org>
Mon, 11 Apr 2022 09:32:20 +0000 (09:32 +0000)
commit20f59560a47b45b1763eb0618891cf588d7aa366
treefbfdbbc5414965a08c15f3b5d85a40c63abc344d
parent35eb0e80f3ee1cf60d53f7554e89602db4510206
Fix spamlogd's rc_pre to avoid creating pflog0 if spamd is disabled.
The conditional was not checked (prior to r1.2 the exit code from the
conditional was implicitly used as the exit code from the whole shell
function, but this wasn't adapted when pflog creation was added).
Reported/tested by Clint Pachl
etc/rc.d/spamlogd