diff options
author | bluhm <bluhm@openbsd.org> | 2017-04-06 14:55:43 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2017-04-06 14:55:43 +0000 |
commit | be87e30185e16a1557975bd6f38fa092438427c8 (patch) | |
tree | 615f498ede9a4fd04e128a46357a237e439174c1 /usr.sbin/syslogd | |
parent | Replace bcopy with a simple assignment where both variables are (diff) | |
download | wireguard-openbsd-be87e30185e16a1557975bd6f38fa092438427c8.tar.xz wireguard-openbsd-be87e30185e16a1557975bd6f38fa092438427c8.zip |
Add the LOG_SYSLOG facility to local messages.
OK millert@
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/log.c b/usr.sbin/syslogd/log.c index dc5bbccf82e..7de0fc7164a 100644 --- a/usr.sbin/syslogd/log.c +++ b/usr.sbin/syslogd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.2 2017/04/05 11:31:45 bluhm Exp $ */ +/* $OpenBSD: log.c,v 1.3 2017/04/06 14:55:43 bluhm Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -109,7 +109,7 @@ vlog(int pri, const char *fmt, va_list ap) fprintf(stderr, "%s\n", ebuf); fflush(stderr); } else - vlogmsg(pri, log_procname, fmt, ap); + vlogmsg(facility|pri, log_procname, fmt, ap); errno = saved_errno; } |