From be87e30185e16a1557975bd6f38fa092438427c8 Mon Sep 17 00:00:00 2001 From: bluhm Date: Thu, 6 Apr 2017 14:55:43 +0000 Subject: [PATCH] Add the LOG_SYSLOG facility to local messages. OK millert@ --- usr.sbin/syslogd/log.c | 4 ++-- 1 file 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 @@ -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; } -- 2.20.1