Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153252632
D55033.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
827 B
Referenced Files
None
Subscribers
None
D55033.id.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,8 +2932,9 @@
pri = decode(buf, prioritynames);
if (pri < 0) {
- dprintf("unknown priority name \"%s\"", buf);
- return (NULL);
+ warnx("unknown priority name \"%s\", setting to 'info'",
+ buf);
+ pri = LOG_INFO;
}
}
if (!pri_cmp)
@@ -2955,11 +2956,12 @@
} else {
i = decode(buf, facilitynames);
if (i < 0) {
- dprintf("unknown facility name \"%s\"", buf);
- return (NULL);
+ warnx("unknown facility name \"%s\", ignoring",
+ buf);
+ } else {
+ f->f_pmask[i >> 3] = pri;
+ f->f_pcmp[i >> 3] = pri_cmp;
}
- f->f_pmask[i >> 3] = pri;
- f->f_pcmp[i >> 3] = pri_cmp;
}
while (*p == ',' || *p == ' ')
p++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 2:08 AM (14 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28424606
Default Alt Text
D55033.id.diff (827 B)
Attached To
Mode
D55033: syslogd: Fix handling of configuration errors
Attached
Detach File
Event Timeline
Log In to Comment