#?patch
#
# This patch corrects the logging of transfers, of OpenBSD's httpd(8),
# to xferlog, where it belongs.
#
# A simple patch to a waaay overcomplicated bit of software (with insane
# defaults to boot; security anyone?).
# 
#         --zeurkous, Sat Oct 24 17:51:55 UTC 2020.
#
--- src/usr.sbin/httpd/..v/OPENBSD_6_6/server.c Fri Jun 28 13:32:47 2019
+++ src/usr.sbin/httpd/server.c Sat Oct 24 17:45:43 2020
@@ -1241,7 +1241,7 @@
        if (srv_conf->flags & SRVFLAG_SYSLOG) {
                va_start(ap, emsg);
                if (cmd == IMSG_LOG_ACCESS)
-                       vlog(LOG_INFO, emsg, ap);
+                       vlog(LOG_FTP, emsg, ap);
                else
                        vlog(LOG_DEBUG, emsg, ap);
                va_end(ap);

Reply via email to