From 6139d65da38d0815bdf9bea5bd69604951456d38 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 26 May 2017 17:38:46 +0000 Subject: Sync the severity of the syslog_* functions shared between identd, slowcgi, tftp-proxy and tftpd to the severity used in log.c style loggers. This also fixes an issue where syslog_err and syslog_errx logged with different severities. Sure deraadt@ --- slowcgi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/slowcgi.c b/slowcgi.c index dec4df8..b8629d2 100644 --- a/slowcgi.c +++ b/slowcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.50 2016/09/04 14:40:34 florian Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.51 2017/05/26 17:38:46 florian Exp $ */ /* * Copyright (c) 2013 David Gwynne * Copyright (c) 2013 Florian Obser @@ -1236,7 +1236,7 @@ syslog_err(int ecode, const char *fmt, ...) va_list ap; va_start(ap, fmt); - syslog_vstrerror(errno, LOG_EMERG, fmt, ap); + syslog_vstrerror(errno, LOG_CRIT, fmt, ap); va_end(ap); exit(ecode); } @@ -1247,7 +1247,7 @@ syslog_errx(int ecode, const char *fmt, ...) va_list ap; va_start(ap, fmt); - vsyslog(LOG_WARNING, fmt, ap); + vsyslog(LOG_CRIT, fmt, ap); va_end(ap); exit(ecode); } @@ -1258,7 +1258,7 @@ syslog_warn(const char *fmt, ...) va_list ap; va_start(ap, fmt); - syslog_vstrerror(errno, LOG_WARNING, fmt, ap); + syslog_vstrerror(errno, LOG_ERR, fmt, ap); va_end(ap); } @@ -1268,7 +1268,7 @@ syslog_warnx(const char *fmt, ...) va_list ap; va_start(ap, fmt); - vsyslog(LOG_WARNING, fmt, ap); + vsyslog(LOG_ERR, fmt, ap); va_end(ap); } -- cgit v1.2.3-2-gb3c3