diff options
author | trasz <trasz@FreeBSD.org> | 2015-06-18 10:17:47 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-06-18 10:17:47 +0000 |
commit | 54d292681c5d8e35dffe18b024803c13630764c5 (patch) | |
tree | c0b853cb076f8c12c171d88d9945f60c2d5df3c5 /usr.sbin/ctld | |
parent | b4dd23a67ce44b7770b66377154e06f7efa23904 (diff) | |
download | FreeBSD-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/ctld')
-rw-r--r-- | usr.sbin/ctld/token.l | 2 |
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 */; |