summaryrefslogtreecommitdiffstats
path: root/syslog-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-25 08:06:43 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-25 08:06:43 +0000
commit39d2fa39bf2ca5af6dae40a31a6bb6b615f74bed (patch)
treea0f5256555372d05b9c0cb74a1e355d7363b7cda /syslog-model.lua
parentb437cd58826ebb97ea127febfad6eed7eaa897f3 (diff)
downloadacf-alpine-baselayout-39d2fa39bf2ca5af6dae40a31a6bb6b615f74bed.tar.bz2
acf-alpine-baselayout-39d2fa39bf2ca5af6dae40a31a6bb6b615f74bed.tar.xz
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
Diffstat (limited to 'syslog-model.lua')
-rw-r--r--syslog-model.lua3
1 files changed, 3 insertions, 0 deletions
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