Date: Mon, 13 Aug 2018 14:49:07 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337711 - head/stand/lua Message-ID: <201808131449.w7DEn7s6066514@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Mon Aug 13 14:49:07 2018 New Revision: 337711 URL: https://svnweb.freebsd.org/changeset/base/337711 Log: lualoader: Fix parsing of negative number loader.conf(5) variables They would previously cause errors, as the regex for these did not tolerate a leading negative sign, and the variable would simply not parse. Modified: head/stand/lua/config.lua Modified: head/stand/lua/config.lua ============================================================================== --- head/stand/lua/config.lua Mon Aug 13 14:24:00 2018 (r337710) +++ head/stand/lua/config.lua Mon Aug 13 14:49:07 2018 (r337711) @@ -198,7 +198,7 @@ local pattern_table = { }, -- env_var=num { - str = "^%s*([%w%p]+)%s*=%s*(%d+)%s*(.*)", + str = "^%s*([%w%p]+)%s*=%s*(-?%d+)%s*(.*)", process = function(k, v) if setEnv(k, processEnvVar(v)) ~= 0 then print(MSG_FAILSETENV:format(k, tostring(v)))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808131449.w7DEn7s6066514>