From: Denys Vlasenko Date: Sun, 20 Jan 2013 15:05:41 +0000 (+0100) Subject: syslogd: do not segfault on parse error when using default config. Closes 5762 X-Git-Tag: 1_21_0~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81fa999540740b5269a349a9e991eb506592ea75;p=oweals%2Fbusybox.git syslogd: do not segfault on parse error when using default config. Closes 5762 Signed-off-by: Denys Vlasenko --- diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f349f4711..3fe3f5348 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