Brief Report: IBM/Lenovo z60t notebook with FreeBSD

Matthew N. Dodd mdodd at FreeBSD.ORG
Sat Dec 3 15:47:20 PST 2005


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;
  			}


More information about the freebsd-current mailing list