aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-13 14:49:07 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-13 14:49:07 +0000
commit90486977de0eccd76f331c0acbae1090aa52e18f (patch)
treeb2947b61e80d84feb0ace65f83f20dba4dae6833 /stand
parent5ccac9f9727445effc944d8aa818450a1fd1c46a (diff)
downloadsrc-90486977de0eccd76f331c0acbae1090aa52e18f.tar.gz
src-90486977de0eccd76f331c0acbae1090aa52e18f.zip
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.
Notes
Notes: svn path=/head/; revision=337711
Diffstat (limited to 'stand')
-rw-r--r--stand/lua/config.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/lua/config.lua b/stand/lua/config.lua
index b6dab481300a..139c61d64220 100644
--- a/stand/lua/config.lua
+++ b/stand/lua/config.lua
@@ -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)))