Date: Sat, 3 Dec 2005 18:47:12 -0500 (EST) From: "Matthew N. Dodd" <mdodd@FreeBSD.ORG> To: Bill Paul <wpaul@FreeBSD.ORG> Cc: freebsd-current@FreeBSD.ORG, Robert Watson <rwatson@FreeBSD.ORG> Subject: Re: Brief Report: IBM/Lenovo z60t notebook with FreeBSD Message-ID: <20051203184409.O52622@sasami.jurai.net> In-Reply-To: <20051203201944.D8DBF16A420@hub.freebsd.org> References: <20051203201944.D8DBF16A420@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Dec 2005, Bill Paul wrote:
>>
>> [5211.reg.security]
>> "D:ARAI(A;;GA;;;BA)(A;;GA;;;SY)(A;CI;GA;;;IO)
>
> I'm not sure how to fix the lex/yacc parser to avoid this. Suggestions
> welcome. For now, I just edit the .inf file too.
I'm not sure if this patch causes any collateral damage, but it appears to
work for my trivial tests.
Index: inf-token.l
===================================================================
RCS file: /home/cvs/src/usr.sbin/ndiscvt/inf-token.l,v
retrieving revision 1.3
diff -u -u -r1.3 inf-token.l
--- inf-token.l 11 Jan 2004 21:10:35 -0000 1.3
+++ inf-token.l 3 Dec 2005 23:43:54 -0000
@@ -116,7 +116,7 @@
yylval.str = strdup(yytext+1);
return SECTION;
}
-[a-zA-Z0-9%&\{\}\-\.\/_\\\*]+ {
+[a-zA-Z0-9%&\{\}\-\.\/_\\\*\"\:\;\(\)]+ {
yylval.str = strdup(yytext);
return WORD;
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051203184409.O52622>
