summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shorewall-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 9a660a6..023ceed 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -307,8 +307,8 @@ end
function getlogfile ()
local logfile = {}
- local logfilepath = getopts.getoptsfromfile(configfile,"LOGFILE")
- local cmdaction = "grep Shorewall " .. logfilepath.LOGFILE
+ local logfilepath = getopts.getoptsfromfile(configfile,"","LOGFILE") or ""
+ local cmdaction = "grep Shorewall " .. logfilepath
local f, error = io.popen(cmdaction ,r)
local checkresult = f:read("*a")
f:close()