diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-04-06 14:55:44 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-04-06 14:55:44 +0000 |
commit | 61602b098095a046e14d9632a898540daec1d151 (patch) | |
tree | b411ddf4e04d1f094cbfc85567d617e3a817eac2 /usr.sbin | |
parent | 0556aba597286b6457464caacee2c35959748225 (diff) |
Add the LOG_SYSLOG facility to local messages.
OK millert@
Diffstat (limited to 'usr.sbin')
-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; } |