/[base]
ViewVC logotype

Revision 335058


Jump to revision: Previous Next
Author: kp
Date: Wed Jun 13 13:15:04 2018 UTC (6 years ago)
Changed paths: 6
Log Message:
MFC r334726:

pf: Return non-zero from 'status' if pf is not enabled

In the pf rc.d script the output of `/etc/rc.d/pf status` or `/etc/rc.d/pf
onestatus` always provided an exit status of zero. This made it fiddly to
programmatically determine if pf was running or not.

Return a non-zero status if the pf module is not loaded, extend pfctl to have
an option to return an error status if pf is not enabled.

PR:		228632
Submitted by:	James Park-Watt <jimmypw AT gmail.com>


Changed paths

Path Details
Directorystable/11/ modified , props changed
Directorystable/11/etc/rc.d/pf modified , text changed
Directorystable/11/sbin/pfctl/pfctl.8 modified , text changed
Directorystable/11/sbin/pfctl/pfctl.c modified , text changed
Directorystable/11/sbin/pfctl/pfctl_parser.c modified , text changed
Directorystable/11/sbin/pfctl/pfctl_parser.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27