Author: kevans Date: Tue Jun 12 18:42:41 2018 New Revision: 335009 URL: https://svnweb.freebsd.org/changeset/base/335009
Log: lualoader: Match Forth module-loading behavior w.r.t flags Also as documented in loader.conf(5), ${module}_flags are actually flags to be passed to the module, not to `load` as was done thus far. Modified: head/stand/lua/config.lua Modified: head/stand/lua/config.lua ============================================================================== --- head/stand/lua/config.lua Tue Jun 12 17:55:40 2018 (r335008) +++ head/stand/lua/config.lua Tue Jun 12 18:42:41 2018 (r335009) @@ -226,9 +226,6 @@ local function loadModule(mod, silent) for k, v in pairs(mod) do if v.load ~= nil and v.load:lower() == "yes" then local str = "load " - if v.flags ~= nil then - str = str .. v.flags .. " " - end if v.type ~= nil then str = str .. "-t " .. v.type .. " " end @@ -236,6 +233,9 @@ local function loadModule(mod, silent) str = str .. v.name else str = str .. k + end + if v.flags ~= nil then + str = str .. " " .. v.flags end if v.before ~= nil then pstatus = cli_execute_unparsed(v.before) == 0 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"