From 1519b07eaf094d8cc79eda94a2eb8480af546bed Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 25 Dec 2012 01:49:33 +0000 Subject: Fix typos --- awall-model.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3