]> granicus.if.org Git - apache/commitdiff
Any failure in apr_stat on a symlink currently gives
authorJoshua Slive <slive@apache.org>
Sat, 10 Sep 2005 16:36:37 +0000 (16:36 +0000)
committerJoshua Slive <slive@apache.org>
Sat, 10 Sep 2005 16:36:37 +0000 (16:36 +0000)
"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/trunk@280018 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index eb5c298327ae83046c78cfabf067e79ae57ca4ab..962a53716d49994b18d51bd8bae2a1aedf7f5e3d 100644 (file)
@@ -992,7 +992,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;
                 }