diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-06-03 08:21:41 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-06-03 08:21:41 +0000 |
commit | c026d3dba9add1e563f5f60f8dfde2b9c94f8663 (patch) | |
tree | bebf3518301be9f8f4c404f7a58c30c28cc8f696 /usr.sbin/syslogd/syslogd.c | |
parent | 1fe48e5883bfdcf88c1791bb57dfe57bcff42156 (diff) |
Interpret !* correcly. ok dhartmei@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 07d589c02ab..85bad7fc242 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.77 2004/05/25 23:51:30 djm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.78 2004/06/03 08:21:40 otto Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.77 2004/05/25 23:51:30 djm Exp $"; +static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.78 2004/06/03 08:21:40 otto Exp $"; #endif #endif /* not lint */ @@ -1142,7 +1142,7 @@ init(void) p++; while (isspace(*p)) p++; - if (!*p) { + if (!*p || (*p == '*' && (!p[1] || isspace(p[1])))) { strlcpy(prog, "*", sizeof(prog)); continue; } |