projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cfcc9e
)
syslogd: do not segfault on parse error when using default config. Closes 5762
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 20 Jan 2013 15:05:41 +0000
(16:05 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 20 Jan 2013 15:05:41 +0000
(16:05 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sysklogd/syslogd.c
patch
|
blob
|
history
diff --git
a/sysklogd/syslogd.c
b/sysklogd/syslogd.c
index f349f4711416d1e492f90a50de58e83a6f0bc599..3fe3f5348bd9418ac70c198352b2118ee3d19ab6 100644
(file)
--- 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