Stop logging misleading errors when custom generic error pages are in use.
authorclaudio <claudio@openbsd.org>
Tue, 13 Feb 2024 14:00:24 +0000 (14:00 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 13 Feb 2024 14:00:24 +0000 (14:00 +0000)
commitb32af6594337ef6e51ee8ffc41628f1f056235da
treecb7f607ebe27a9f127ddfbdf5d6ed0011d7985b6
parente78a66e5775d3e9cf59b16f193be327ae6d56426
Stop logging misleading errors when custom generic error pages are in use.

Only call the open(2) log_warn for errnos that are not ENOENT. Since
that is an error worth logging.

Based on a diff from Carsten Reith (carsten.reith t-online.de)
OK florian@ deraadt@
usr.sbin/httpd/server_http.c