svn commit: r261766 - head/usr.sbin/ctld

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Feb 11 11:36:15 UTC 2014


Author: trasz
Date: Tue Feb 11 11:36:15 2014
New Revision: 261766
URL: http://svnweb.freebsd.org/changeset/base/261766

Log:
  Make ctld error out on invalid characters in ctl.conf.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/ctld/token.l

Modified: head/usr.sbin/ctld/token.l
==============================================================================
--- head/usr.sbin/ctld/token.l	Tue Feb 11 11:35:26 2014	(r261765)
+++ head/usr.sbin/ctld/token.l	Tue Feb 11 11:36:15 2014	(r261766)
@@ -85,4 +85,5 @@ timeout			{ return TIMEOUT; }
 #.*$			/* ignore comments */;
 \n			{ lineno++; }
 [ \t]+			/* ignore whitespace */;
+.			{ yylval.str = strdup(yytext); return STR; }
 %%


More information about the svn-src-head mailing list