Re: Brief Report: IBM/Lenovo z60t notebook with FreeBSD

From: Matthew N. Dodd <mdodd_at_FreeBSD.ORG>
Date: Sat, 3 Dec 2005 18:47:12 -0500 (EST)
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
_at__at_ -116,7 +116,7 _at__at_
  				yylval.str = strdup(yytext+1);
  				return SECTION;
  			}
-[a-zA-Z0-9%&\{\}\-\.\/_\\\*]+		{
+[a-zA-Z0-9%&\{\}\-\.\/_\\\*\"\:\;\(\)]+	{
  				yylval.str = strdup(yytext);
  				return WORD;
  			}
Received on Sat Dec 03 2005 - 22:47:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC