]> granicus.if.org Git - apache/commitdiff
PR#45722: if we get EACCESS in the directory walk, give the hint that's in 1.3
authorEric Covener <covener@apache.org>
Thu, 4 Nov 2010 22:36:37 +0000 (22:36 +0000)
committerEric Covener <covener@apache.org>
Thu, 4 Nov 2010 22:36:37 +0000 (22:36 +0000)
about search permissions on intermediate directories.  I left the prefix of the message
as "denied" instead of "failed" to satisfy web searches.

The extended error text was added to 1.3.x but not trunk in
  http://svn.apache.org/viewvc?view=revision&revision=99781

This plagues users on IRC!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031307 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index 612b09eb2f95871c8e2ea8140e73a82bd5eba1b7..2779c8de4711b6138ce57590be379fb3bb2801ab 100644 (file)
@@ -1080,7 +1080,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,
-                              "access to %s denied", r->uri);
+                              "access to %s denied because search "
+                              "permissions are missing on a component "
+                              "of the path", r->uri);
                 return r->status = HTTP_FORBIDDEN;
             }
             else if ((rv != APR_SUCCESS && rv != APR_INCOMPLETE)