Skip to content
Snippets Groups Projects
Commit a38f2a4c authored by David Bauer's avatar David Bauer
Browse files

packages: fix missing argument to posix.glob

parent 002e3a9c
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ end ...@@ -134,7 +134,7 @@ end
-- Safe glob: returns an empty table when the glob fails because of -- Safe glob: returns an empty table when the glob fails because of
-- a non-existing path -- a non-existing path
function M.glob(pattern) function M.glob(pattern)
return posix_glob.glob(pattern) or {} return posix_glob.glob(pattern, 0) or {}
end end
-- Generates a (hopefully) unique MAC address -- Generates a (hopefully) unique MAC address
......
...@@ -159,10 +159,10 @@ local function dispatch(config, http, request) ...@@ -159,10 +159,10 @@ local function dispatch(config, http, request)
ctl() ctl()
end end
for _, path in ipairs(glob.glob(base .. "*.lua") or {}) do for _, path in ipairs(glob.glob(base .. "*.lua", 0) or {}) do
load_ctl(path) load_ctl(path)
end end
for _, path in ipairs(glob.glob(base .. "*/*.lua") or {}) do for _, path in ipairs(glob.glob(base .. "*/*.lua", 0) or {}) do
load_ctl(path) load_ctl(path)
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment