svn commit: r284542 - head/usr.sbin/ctld
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jun 18 10:17:48 UTC 2015
Author: trasz
Date: Thu Jun 18 10:17:47 2015
New Revision: 284542
URL: https://svnweb.freebsd.org/changeset/base/284542
Log:
Allow '@' in unquoted strings, such as with the "path" statement. Note
that one can use any character they like by using double quotes.
PR: 200895
MFC after: 2 weeks
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 Thu Jun 18 09:39:51 2015 (r284541)
+++ head/usr.sbin/ctld/token.l Thu Jun 18 10:17:47 2015 (r284542)
@@ -80,7 +80,7 @@ target { return TARGET; }
timeout { return TIMEOUT; }
\"[^"]+\" { yylval.str = strndup(yytext + 1,
strlen(yytext) - 2); return STR; }
-[a-zA-Z0-9\.\-_/\:\[\]]+ { yylval.str = strdup(yytext); return STR; }
+[a-zA-Z0-9\.\- at _/\:\[\]]+ { yylval.str = strdup(yytext); return STR; }
\{ { return OPENING_BRACKET; }
\} { return CLOSING_BRACKET; }
#.*$ /* ignore comments */;
More information about the svn-src-all
mailing list