packages: fix missing argument to posix.glob

This commit is contained in:
David Bauer 2019-08-28 19:55:36 +02:00
parent 002e3a9c19
commit a38f2a4cf1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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