From 39d2fa39bf2ca5af6dae40a31a6bb6b615f74bed Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 25 Jan 2008 08:06:43 +0000 Subject: Yet another bugfix when the config is (almost) empty git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@648 ab2d0c66-481e-0410-8bed-d214d4d58bed --- syslog-model.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'syslog-model.lua') diff --git a/syslog-model.lua b/syslog-model.lua index 2e7cae2..a2a6eb2 100644 --- a/syslog-model.lua +++ b/syslog-model.lua @@ -64,6 +64,9 @@ function getconfig() errors["KLOGD_OPTS"] = {} if (fs.is_file(configfile)) then config = getopts.getoptsfromfile(configfile) or config + if (type(config["SYSLOGD_OPTS"]) == "string") then + config["SYSLOGD_OPTS"] = {} + end else errors["configfile"] = "Config file '".. configfile .. "' is missing!" end -- cgit v1.2.3