conf/146824: [PATCH] fix issue regarding rc.d/pf

chris petrik c.petrik.sosa at gmail.com
Sat May 22 10:50:01 UTC 2010


>Number:         146824
>Category:       conf
>Synopsis:       [PATCH] fix issue regarding rc.d/pf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 10:50:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     chris petrik
>Release:        freeBSD 8.0-Pre
>Organization:
officialunix
>Environment:
>Description:
When loading pf 
it shows it as:
Enabling pfpf enabled
 it should be shown as:
Enabling pf pf enable

THis small and simple patch just ads a space for start() and disable()
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: pf
===================================================================
RCS file: /usr/local/freebsdcvs/src/etc/rc.d/pf,v
retrieving revision 1.20
diff -u -r1.20 pf
--- pf	10 Oct 2009 22:17:03 -0000	1.20
+++ pf	22 May 2010 10:39:35 -0000
@@ -25,7 +25,7 @@
 
 pf_start()
 {
-	check_startmsgs && echo -n 'Enabling pf'
+	check_startmsgs && echo -n 'Enabling pf '
 	$pf_program -F all > /dev/null 2>&1
 	$pf_program -f "$pf_rules" $pf_flags
 	if ! $pf_program -s info | grep -q "Enabled" ; then
@@ -37,7 +37,7 @@
 pf_stop()
 {
 	if $pf_program -s info | grep -q "Enabled" ; then
-		echo -n 'Disabling pf'
+		echo -n 'Disabling pf '
 		$pf_program -d
 		echo '.'
 	fi


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list