svn commit: r337711 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Mon Aug 13 14:49:08 UTC 2018
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)))
More information about the svn-src-head
mailing list