diff options
author | Denys Vlasenko | 2013-01-20 16:05:41 +0100 |
---|---|---|
committer | Denys Vlasenko | 2013-01-20 16:05:41 +0100 |
commit | 81fa999540740b5269a349a9e991eb506592ea75 (patch) | |
tree | 45c220e07305e073a429ae3a6eae2b7257deaff6 /sysklogd/syslogd.c | |
parent | 2cfcc9e9d74447cb770255d1d8cb6f3722df22ba (diff) | |
download | busybox-81fa999540740b5269a349a9e991eb506592ea75.zip busybox-81fa999540740b5269a349a9e991eb506592ea75.tar.gz |
syslogd: do not segfault on parse error when using default config. Closes 5762
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f349f47..3fe3f53 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -429,7 +429,9 @@ static void parse_syslogdcfg(const char *file) return; cfgerr: - bb_error_msg_and_die("error in '%s' at line %d", file, parser->lineno); + bb_error_msg_and_die("error in '%s' at line %d", + file ? file : "/etc/syslog.conf", + parser->lineno); } #endif |