diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-12-25 01:49:33 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-12-25 01:49:33 +0000 |
commit | 1519b07eaf094d8cc79eda94a2eb8480af546bed (patch) | |
tree | 7d835d2f9b4b8ff9bc84f6abfa1d9000573f212d | |
parent | c86539f56cbacfb13162f7274802c573fe52db04 (diff) | |
download | acf-awall-1519b07eaf094d8cc79eda94a2eb8480af546bed.tar.bz2 acf-awall-1519b07eaf094d8cc79eda94a2eb8480af546bed.tar.xz |
Fix typos
-rw-r--r-- | awall-model.lua | 3 |
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 |