Date: Tue, 27 Sep 2005 14:20:37 GMT From: MOROHOSHI Akihiko <moro@remus.dti.ne.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/86635: [patch] pfctl: allow new page character (^L) in pf.conf Message-ID: <200509271420.j8REKbgX008925@www.freebsd.org> Resent-Message-ID: <200509271430.j8REUIHd051876@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509271420.j8REKbgX008925>