Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 02:19:01 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338227 - stable/11/usr.sbin/config
Message-ID:  <201808230219.w7N2J1Kj074658@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Thu Aug 23 02:19:00 2018
New Revision: 338227
URL: https://svnweb.freebsd.org/changeset/base/338227

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/11/usr.sbin/config/lang.l
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/config/lang.l
==============================================================================
--- stable/11/usr.sbin/config/lang.l	Thu Aug 23 02:17:36 2018	(r338226)
+++ stable/11/usr.sbin/config/lang.l	Thu Aug 23 02:19:00 2018	(r338227)
@@ -125,7 +125,7 @@ PATH	[./][-/.%^A-Za-z_0-9]+
 				BEGIN ENVC;
 			return i;
 		}
-\\\"[^"]+\\\"	{
+\\\"[^"]*\\\"	{
 			BEGIN 0;
 			yytext[yyleng-2] = '"';
 			yytext[yyleng-1] = '\0';



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808230219.w7N2J1Kj074658>