summaryrefslogtreecommitdiffstats
path: root/usr.sbin/identd
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-05-26 17:38:46 +0000
committerflorian <florian@openbsd.org>2017-05-26 17:38:46 +0000
commita52b97d1599665c49e986ca658b57eac1bf9d6d4 (patch)
treea19b0d8efa8e2edb20960022a66d3c8dd1c1a098 /usr.sbin/identd
parentSynchronise chacha test cases with the referenced draft - this adds a (diff)
downloadwireguard-openbsd-a52b97d1599665c49e986ca658b57eac1bf9d6d4.tar.xz
wireguard-openbsd-a52b97d1599665c49e986ca658b57eac1bf9d6d4.zip
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@
Diffstat (limited to 'usr.sbin/identd')
-rw-r--r--usr.sbin/identd/identd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c
index f995f6a56a0..176e01f1bac 100644
--- a/usr.sbin/identd/identd.c
+++ b/usr.sbin/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.35 2017/04/18 03:54:27 deraadt Exp $ */
+/* $OpenBSD: identd.c,v 1.36 2017/05/26 17:38:46 florian Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -1078,7 +1078,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);
}
@@ -1089,7 +1089,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);
}
@@ -1100,7 +1100,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);
}
@@ -1110,7 +1110,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);
}