diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-08-20 22:08:03 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-08-20 22:08:03 +0000 |
commit | 4b09be036dffd335755f11346732d18114e4cbf4 (patch) | |
tree | 39a7a7bb4e68b3424c2ffb0124d6039e98c58a84 /usr.sbin | |
parent | 7576fe761e9df400f097d4d7ce9f24340f8c4dd7 (diff) | |
download | src-4b09be036dffd335755f11346732d18114e4cbf4.tar.gz src-4b09be036dffd335755f11346732d18114e4cbf4.zip |
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.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=338120
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/lang.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index 727346ec122a..308c38393916 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -127,7 +127,7 @@ PATH [./][-/.%^A-Za-z_0-9]+ BEGIN ENVC; return i; } -\\\"[^"]+\\\" { +\\\"[^"]*\\\" { BEGIN 0; yytext[yyleng-2] = '"'; yytext[yyleng-1] = '\0'; |