From c5ce231c30a0b6b89b5c1a6d743e19d466350fdf Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Fri, 16 Mar 2012 13:38:07 +0000 Subject: [PATCH] add filesystem paths to some common error messages. (slightly modified from dev@ post to not bury the "failed/denied") git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1301504 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ server/request.c | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index c2e9afdcc7..b1949fb621 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) core: Add filesystem paths to access denied / access failed messages + AH00035 and AH00036. [Eric Covener] + *) core: Add the port number to the vhost's name in the scoreboard. [Stefan Fritsch] diff --git a/server/request.c b/server/request.c index 37cffdde04..c2fdd89ea4 100644 --- a/server/request.c +++ b/server/request.c @@ -1094,9 +1094,9 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r) } else if (APR_STATUS_IS_EACCES(rv)) { ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(00035) - "access to %s denied because search " - "permissions are missing on a component " - "of the path", r->uri); + "access to %s denied (filesystem path '%s') " + "because search permissions are missing on a " + "component of the path", r->uri, r->filename); return r->status = HTTP_FORBIDDEN; } else if ((rv != APR_SUCCESS && rv != APR_INCOMPLETE) @@ -1105,7 +1105,8 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r) * rather than assume not found. */ ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(00036) - "access to %s failed", r->uri); + "access to %s failed (filesystem path '%s')", + r->uri, r->filename); return r->status = HTTP_FORBIDDEN; } -- 2.40.0