packages: fix missing argument to posix.glob
This commit is contained in:
parent
002e3a9c19
commit
a38f2a4cf1
@ -134,7 +134,7 @@ end
|
||||
-- Safe glob: returns an empty table when the glob fails because of
|
||||
-- a non-existing path
|
||||
function M.glob(pattern)
|
||||
return posix_glob.glob(pattern) or {}
|
||||
return posix_glob.glob(pattern, 0) or {}
|
||||
end
|
||||
|
||||
-- Generates a (hopefully) unique MAC address
|
||||
|
@ -159,10 +159,10 @@ local function dispatch(config, http, request)
|
||||
ctl()
|
||||
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)
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user