Reduce the log level of tcpd_warn calls from ERR to WARNING.

This matches the name and avoids logging of warnings to console with
default syslog.conf, esp. getting rid of:
  warning: /etc/hosts.allow, line ..: can't verify hostname: \
     getaddrinfo(.., AF_INET) failed
This commit is contained in:
bz 2018-08-23 20:44:26 +00:00
parent fd4c15bf76
commit bbf7c66f5e

View File

@ -52,7 +52,7 @@ void VARARGS(tcpd_warn, char *, format)
va_list ap;
VASTART(ap, char *, format);
tcpd_diag(LOG_ERR, "warning", format, ap);
tcpd_diag(LOG_WARNING, "warning", format, ap);
VAEND(ap);
}