From 22bbf4b922bc18190ec888a57944bede6bd270fc Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 19 Apr 2012 05:27:23 +0000 Subject: corrected scope errors --- awall-cli | 2 +- awall/policy.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awall-cli b/awall-cli index 25b64eb..2aaeb45 100755 --- a/awall-cli +++ b/awall-cli @@ -36,7 +36,7 @@ require 'awall.util' for switch, value in pairs(alt_getopt.get_opts(arg, short_opts, long_opts)) do if awall.util.contains({'a', 'l'}, switch) then mode = switch elseif awall.util.contains({'d', 'e', 'i', 'I'}, switch) then - table.insert(awall.util.params[switch], value) + table.insert(params[switch], value) elseif switch == 'F' then fallback = true elseif switch == 'o' then iptdir = value diff --git a/awall/policy.lua b/awall/policy.lua index b75ec92..0728769 100644 --- a/awall/policy.lua +++ b/awall/policy.lua @@ -132,7 +132,7 @@ function PolicySet:enable(name) target = lfs.currentdir()..'/'..target end - pid, stdin, stdout = lpc.run('ln', '-s', target, self.confdir) + local pid, stdin, stdout = lpc.run('ln', '-s', target, self.confdir) stdin:close() stdout:close() assert(lpc.wait(pid) == 0) -- cgit v1.2.3