Commit 22bbf4b9 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

corrected scope errors

parent 825ab203
......@@ -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
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment