summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-06-18 10:17:47 +0000
committertrasz <trasz@FreeBSD.org>2015-06-18 10:17:47 +0000
commit54d292681c5d8e35dffe18b024803c13630764c5 (patch)
treec0b853cb076f8c12c171d88d9945f60c2d5df3c5 /usr.sbin
parentb4dd23a67ce44b7770b66377154e06f7efa23904 (diff)
downloadFreeBSD-src-54d292681c5d8e35dffe18b024803c13630764c5.zip
FreeBSD-src-54d292681c5d8e35dffe18b024803c13630764c5.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctld/token.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/token.l b/usr.sbin/ctld/token.l
index 54b803b..caf59cc 100644
--- a/usr.sbin/ctld/token.l
+++ b/usr.sbin/ctld/token.l
@@ -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 */;
OpenPOWER on IntegriCloud