Module Name:    src
Committed By:   sevan
Date:           Wed May  2 00:03:27 UTC 2018

Modified Files:
        src/libexec/httpd/lua: optparse.lua

Log Message:
Unbreak script for Lua 5.3.
This change breaks support for older releases of Lua.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/libexec/httpd/lua/optparse.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/lua/optparse.lua
diff -u src/libexec/httpd/lua/optparse.lua:1.1.1.1 src/libexec/httpd/lua/optparse.lua:1.2
--- src/libexec/httpd/lua/optparse.lua:1.1.1.1	Mon May 10 03:30:04 2010
+++ src/libexec/httpd/lua/optparse.lua	Wed May  2 00:03:27 2018
@@ -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

Reply via email to