Page MenuHomeFreeBSD

D55033.diff
No OneTemporary

D55033.diff

diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -2932,7 +2932,7 @@
pri = decode(buf, prioritynames);
if (pri < 0) {
- dprintf("unknown priority name \"%s\"", buf);
+ dprintf("unknown priority name \"%s\"\n", buf);
return (NULL);
}
}
@@ -2955,7 +2955,7 @@
} else {
i = decode(buf, facilitynames);
if (i < 0) {
- dprintf("unknown facility name \"%s\"", buf);
+ dprintf("unknown facility name \"%s\"\n", buf);
return (NULL);
}
f->f_pmask[i >> 3] = pri;
@@ -3256,8 +3256,11 @@
strlcpy(f.f_program, prog, sizeof(f.f_program));
/* scan through the list of selectors */
- for (p = line; *p != '\0' && *p != '\t' && *p != ' ';)
+ for (p = line; *p != '\0' && *p != '\t' && *p != ' ';) {
p = parse_selector(p, &f);
+ if (p == NULL)
+ errx(1, "configuration file syntax error");
+ }
/* skip to action part */
while (*p == '\t' || *p == ' ')

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 3, 3:38 AM (12 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28414590
Default Alt Text
D55033.diff (992 B)

Event Timeline