libs/lmo: fix off-by-one in bounds check, null-terminate dest buffer in lmo_lookup()
[project/luci.git] / build / setup.lua
index 6b19c53..4a77154 100644 (file)
@@ -9,7 +9,7 @@ uci_model.cursor = function(config, save)
 end
 
 uci_model.cursor_state = function()
-       return uci_core.cursor(nil, SYSROOT .. "/var/state")
+       return uci_core.cursor(SYSROOT .. "/etc/config", SYSROOT .. "/var/state")
 end
 
 -- override uvl access