Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2010 10:45:05 GMT
From:      chris petrik <c.petrik.sosa@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/146824: [PATCH] fix issue regarding rc.d/pf 
Message-ID:  <201005221045.o4MAj55W052631@www.freebsd.org>
Resent-Message-ID: <201005221050.o4MAo1jf061423@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005221045.o4MAj55W052631>