From 25638ddffe43b9ff3eb639b593c423aa7fe928e4 Mon Sep 17 00:00:00 2001 From: sevan Date: Wed, 2 May 2018 00:03:27 +0000 Subject: Unbreak script for Lua 5.3. This change breaks support for older releases of Lua. --- libexec/httpd/lua/optparse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/httpd/lua/optparse.lua') diff --git a/libexec/httpd/lua/optparse.lua b/libexec/httpd/lua/optparse.lua index da9b62a16cf..6acfd99d74e 100644 --- a/libexec/httpd/lua/optparse.lua +++ b/libexec/httpd/lua/optparse.lua @@ -42,7 +42,7 @@ function OptionParser(t) end function o.parse_args() -- expand options (e.g. "--input=file" -> "--input", "file") - local arg = {unpack(arg)} + local arg = {table.unpack(arg)} for i=#arg,1,-1 do local v = arg[i] local flag, val = v:match('^(%-%-%w+)=(.*)') if flag then -- cgit