SCCS-vsn: usr.sbin/syslogd/syslogd.c 5.43
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)syslogd.c 5.42 (Berkeley) %G%";
+static char sccsid[] = "@(#)syslogd.c 5.43 (Berkeley) %G%";
char *bp;
int pri;
struct hostent *hp;
char *bp;
int pri;
struct hostent *hp;
+ char buf[MAXLINE], ebuf[100];
dprintf("cfline(%s)\n", line);
dprintf("cfline(%s)\n", line);
q++;
/* decode priority name */
q++;
/* decode priority name */
- pri = decode(buf, prioritynames);
- if (pri < 0) {
- char xbuf[200];
-
- (void) sprintf(xbuf, "unknown priority name \"%s\"",
- buf);
- logerror(xbuf);
- return;
+ if (*buf == '*')
+ pri = LOG_PRIMASK + 1;
+ else {
+ pri = decode(buf, prioritynames);
+ if (pri < 0) {
+ (void) sprintf(ebuf,
+ "unknown priority name \"%s\"", buf);
+ logerror(ebuf);
+ return;
+ }
else {
i = decode(buf, facilitynames);
if (i < 0) {
else {
i = decode(buf, facilitynames);
if (i < 0) {
- char xbuf[200];
-
- (void) sprintf(xbuf,
"unknown facility name \"%s\"",
buf);
"unknown facility name \"%s\"",
buf);
return;
}
f->f_pmask[i >> 3] = pri;
return;
}
f->f_pmask[i >> 3] = pri;