summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awall-model.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/awall-model.lua b/awall-model.lua
index 479fd3d..00c5d33 100644
--- a/awall-model.lua
+++ b/awall-model.lua
@@ -108,7 +108,7 @@ function list_policies()
local reversepolicies = {}
local errtxt
local f = modelfunctions.run_executable({"awall", "list"}, true)
- for l in string.match(f, "[^\n]+") do
+ for l in string.gmatch(f, "[^\n]+") do
local a,b,c = string.match(l, "(%S+)%s+(%S+)%s*(.*)")
if a and a == "/usr/bin/lua:" then
errtxt = b.." "..c
@@ -249,4 +249,5 @@ end
function disable_policy(self, disable)
disable.descr, disable.errtxt = modelfunctions.run_executable({"awall", "disable", disable.value.name.value}, true)
+ return disable
end