Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143930034
D55033.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
992 B
Referenced Files
None
Subscribers
None
D55033.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D55033: syslogd: Fix handling of configuration errors
Attached
Detach File
Event Timeline
Log In to Comment