]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r280018 from trunk:
authorJoshua Slive <slive@apache.org>
Wed, 21 Sep 2005 15:37:21 +0000 (15:37 +0000)
committerJoshua Slive <slive@apache.org>
Wed, 21 Sep 2005 15:37:21 +0000 (15:37 +0000)
Any failure in apr_stat on a symlink currently gives
"Symbolic link not allowed", which results in much head-scratching
if the actual problem is a broken link of some sort.  The real
fix would be to propogate the correct apr_stat error into the
error log, but that would require more refactoring than I'm
prepared to do.  This change simply expands the error message
to include both possibilities.  It improves the situation for
PR28515 but does not solve it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@290727 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index 1a1b5f118f7638a3f44493de2bbc6b977c1c39e4..d9d37b40cc09f13a9cb127df12503a265a7a438a 100644 (file)
@@ -991,7 +991,8 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r)
                 if ((res = resolve_symlink(r->filename, &thisinfo,
                                            opts.opts, r->pool)) != OK) {
                     ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                                  "Symbolic link not allowed: %s",
+                                  "Symbolic link not allowed "
+                                  "or link target not accessible: %s",
                                   r->filename);
                     return r->status = res;
                 }