summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-30 12:19:27 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-30 12:20:05 +0100
commit7cfce565530cbf6103275002ad20af57a509ad7b (patch)
tree0c10a34224046e14df23b22f9cdb57cb6dcc6f17 /modules/luci-base/luasrc/dispatcher.lua
parentda4b0f0483024066a163080324638eb3761bd3aa (diff)
luci-base: dispatcher.lua: fix filesystem dependency checks
A variable clash led to declarative `fs` dependencies being ineffective. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/dispatcher.lua')
-rw-r--r--modules/luci-base/luasrc/dispatcher.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua
index 32d34da01..72884b722 100644
--- a/modules/luci-base/luasrc/dispatcher.lua
+++ b/modules/luci-base/luasrc/dispatcher.lua
@@ -17,10 +17,10 @@ _M.fs = fs
-- Index table
local index = nil
-local function check_fs_depends(fs)
+local function check_fs_depends(spec)
local fs = require "nixio.fs"
- for path, kind in pairs(fs) do
+ for path, kind in pairs(spec) do
if kind == "directory" then
local empty = true
for entry in (fs.dir(path) or function() end) do