View | Details | Raw Unified | Return to bug 45187
Collapse All | Expand All

(-)./server/request.c (+4 lines)
Lines 963-968 Link Here
963
                              "access to %s denied", r->uri);
963
                              "access to %s denied", r->uri);
964
                return r->status = HTTP_FORBIDDEN;
964
                return r->status = HTTP_FORBIDDEN;
965
            }
965
            }
966
            else if (APR_STATUS_IS_ENAMETOOLONG(rv)) {
967
                thisinfo.filetype = APR_NOFILE;
968
                break;
969
            }
966
            else if ((rv != APR_SUCCESS && rv != APR_INCOMPLETE)
970
            else if ((rv != APR_SUCCESS && rv != APR_INCOMPLETE)
967
                     || !(thisinfo.valid & APR_FINFO_TYPE)) {
971
                     || !(thisinfo.valid & APR_FINFO_TYPE)) {
968
                /* If we hit ENOTDIR, we must have over-optimized, deny
972
                /* If we hit ENOTDIR, we must have over-optimized, deny
(-)./srclib/apr/file_io/unix/filestat.c (+8 lines)
Lines 279-284 Link Here
279
    struct_stat info;
279
    struct_stat info;
280
    int srv;
280
    int srv;
281
281
282
    /* Catch fname length == MAX_PATH since GetFileAttributesEx fails
283
     * with PATH_NOT_FOUND.  We would rather indicate length error than
284
     * 'not found'
285
     */
286
    if (strlen(fname) >= APR_PATH_MAX) {
287
        return APR_ENAMETOOLONG;
288
    }
289
282
    if (wanted & APR_FINFO_LINK)
290
    if (wanted & APR_FINFO_LINK)
283
        srv = lstat(fname, &info);
291
        srv = lstat(fname, &info);
284
    else
292
    else

Return to bug 45187