Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2015 10:17:47 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284542 - head/usr.sbin/ctld
Message-ID:  <201506181017.t5IAHlqV017936@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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\.\-@_/\:\[\]]+ { yylval.str = strdup(yytext); return STR; }
 \{			{ return OPENING_BRACKET; }
 \}			{ return CLOSING_BRACKET; }
 #.*$			/* ignore comments */;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506181017.t5IAHlqV017936>