bin/86635: [patch] pfctl: allow new page character (^L) in pf.conf

MOROHOSHI Akihiko moro at remus.dti.ne.jp
Tue Sep 27 07:30:19 PDT 2005


>Number:         86635
>Category:       bin
>Synopsis:       [patch] pfctl: allow new page character (^L) in pf.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 27 14:30:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     MOROHOSHI Akihiko
>Release:        6.0-BETA5
>Organization:
>Environment:
FreeBSD kikyou.example.com 6.0-BETA5 FreeBSD 6.0-BETA5 #2: Mon Sep 26 22:58:19 JST 2005     moro at kikyou.example.com:/home/tmp/obj/home/releng6/src/sys/KIKYOU  i386
>Description:
PF configuration file contains many things.
Using the new page characters (i.e. ^L, \014) to mark
the beginning of parts is useful because many editors
such as emacs and vim has facilities to jump next/previous
ones.
Attached patch allow new page character in pf.conf.
>How-To-Repeat:
      
>Fix:
--- /usr/src/contrib/pf/pfctl/parse.y.orig	Wed May  4 01:55:20 2005
+++ /usr/src/contrib/pf/pfctl/parse.y	Tue Sep 27 22:58:58 2005
@@ -4799,7 +4799,7 @@
 
 top:
 	p = buf;
-	while ((c = lgetc(fin)) == ' ')
+	while ((c = lgetc(fin)) == ' ' || c == '\014')
 		; /* nothing */
 
 	yylval.lineno = lineno;

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


More information about the freebsd-bugs mailing list