svn commit: r338229 - stable/10/usr.sbin/config

Kyle Evans kevans at FreeBSD.org
Thu Aug 23 02:20:10 UTC 2018


Author: kevans
Date: Thu Aug 23 02:20:09 2018
New Revision: 338229
URL: https://svnweb.freebsd.org/changeset/base/338229

Log:
  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.

Modified:
  stable/10/usr.sbin/config/lang.l
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/config/lang.l
==============================================================================
--- stable/10/usr.sbin/config/lang.l	Thu Aug 23 02:19:42 2018	(r338228)
+++ stable/10/usr.sbin/config/lang.l	Thu Aug 23 02:20:09 2018	(r338229)
@@ -115,7 +115,7 @@ PATH	[./][-/.%^A-Za-z_0-9]+
 			}
 			return i;
 		}
-\\\"[^"]+\\\"	{
+\\\"[^"]*\\\"	{
 			BEGIN 0;
 			yytext[yyleng-2] = '"';
 			yytext[yyleng-1] = '\0';


More information about the svn-src-stable mailing list