]> granicus.if.org Git - apache/commitdiff
add filesystem paths to some common error messages.
authorEric Covener <covener@apache.org>
Fri, 16 Mar 2012 13:38:07 +0000 (13:38 +0000)
committerEric Covener <covener@apache.org>
Fri, 16 Mar 2012 13:38:07 +0000 (13:38 +0000)
(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
server/request.c

diff --git a/CHANGES b/CHANGES
index c2e9afdcc771e1230dde3295d5f10b056616ac6e..b1949fb62181d0933f87b5b739bf7c8488f04c53 100644 (file)
--- 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]
 
index 37cffdde04e5c2ff90c5ff09f6a1f3ab217f11af..c2fdd89ea49be6e29b8be17a9a387ab944c8de5a 100644 (file)
@@ -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;
             }