projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da4b0f0
)
luci-base: dispatcher.lua: fix filesystem dependency checks
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 30 Jan 2020 11:19:27 +0000
(12:19 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 30 Jan 2020 11:20:05 +0000
(12:20 +0100)
A variable clash led to declarative `fs` dependencies being ineffective.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/dispatcher.lua
b/modules/luci-base/luasrc/dispatcher.lua
index 32d34da012db296345dd956620d4b16c2a998a69..72884b72240b033bfd158f09cac68b395dd09f38 100644
(file)
--- 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