From 9a982e4b21310f80275e5ab4868e36201e16c553 Mon Sep 17 00:00:00 2001 From: kevans Date: Thu, 23 Aug 2018 02:20:09 +0000 Subject: [PATCH] MFC r338120: config(8): Allow escape-quoted empty strings For use with things like BOOT_TAG=\"\" -- there are valid reasons to allow empty strings, especially as these are usually being passed through as options. The same argument could perhaps be made for the unquoted variant in things like MODULES_OVERRIDE="", but it's not immediately clear that this is an issue so I've left it untouched. git-svn-id: svn://svn.freebsd.org/base/stable/10@338229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/config/lang.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index a13d1ebb3..f1d9b1c70 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -115,7 +115,7 @@ PATH [./][-/.%^A-Za-z_0-9]+ } return i; } -\\\"[^"]+\\\" { +\\\"[^"]*\\\" { BEGIN 0; yytext[yyleng-2] = '"'; yytext[yyleng-1] = '\0'; -- 2.42.0