From: Joshua Slive Date: Tue, 13 May 2003 15:19:30 +0000 (+0000) Subject: Reverse an earlier decision not to log EACESS results. This will X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=148269ab82051f80b81e225b1b05357a6aa2ebac;p=thirdparty%2Fapache%2Fhttpd.git Reverse an earlier decision not to log EACESS results. This will result in multiple log-entries when requesting a directory where the DirectoryIndex contains multiple entires, but it should eliminate a major source of confusion which results from a 403 error with no error log entry. The fix was pointed out by Jeff; I just adjusted the error message. Reviewed by: Jeff Trawick, Rich Bowen git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@99781 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_request.c b/src/main/http_request.c index f0b2f6a6cba..64585ff3a05 100644 --- a/src/main/http_request.c +++ b/src/main/http_request.c @@ -288,8 +288,13 @@ static int get_path_info(request_rec *r) } else { #if defined(EACCES) - if (errno != EACCES) -#endif + if (errno == EACCES) + ap_log_rerror(APLOG_MARK, APLOG_ERR, r, + "access to %s failed because search " + "permissions are missing on a component " + "of the path", r->uri); + else +#endif ap_log_rerror(APLOG_MARK, APLOG_ERR, r, "access to %s failed", r->uri); return HTTP_FORBIDDEN;