Subject: CVS commit: basesrc/lib/libc/net
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 03/19/2002 02:04:10
Module Name:	basesrc
Committed By:	lukem
Date:		Tue Mar 19 00:04:10 UTC 2002

Modified Files:
	basesrc/lib/libc/net: nslexer.l nsparser.y

Log Message:
Fixes from Bill Fenner <fenner@research.att.com> for problems he found
in FreeBSD's port of this nsswitch code:

- Don't ignore unknown characters.  The old lexer would treat
	hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns
  exactly the same as
	hosts: files dns

- Recover from errors by looking for the end of a line.  This means
  that having a syntax error near the top of the file doesn't prevent
  a service at the bottom of the file with no syntax error from being
  looked up.

Thanks Bill!


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 basesrc/lib/libc/net/nslexer.l
cvs rdiff -r1.7 -r1.8 basesrc/lib/libc/net/nsparser.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.