Commit ade1f9a2 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Just a little cleaner.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89933 13f79535-47bb-0310-9956-ffa450edef68
parent 20d06d03
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
@@ -1236,7 +1236,6 @@ static void fill_in_sub_req_vars(request_rec *rnew, const request_rec *r,
static int sub_req_common_validation(request_rec *rnew)
{
    int res;

    if (((   ap_satisfies(rnew) == SATISFY_ALL
             || ap_satisfies(rnew) == SATISFY_NOSPEC)
            ? ((res = ap_run_access_checker(rnew))
@@ -1453,10 +1452,15 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_dirent(const apr_finfo_t *dirent,
         * do a file_walk, if it doesn't change the per_dir_config then
         * we know that we don't have to redo all the access checks
         */
        if ((res = file_walk(rnew) == OK)
            && (rnew->per_dir_config == r->per_dir_config)
            && (res = ap_run_type_checker(rnew)) == OK 
            && (res = ap_run_fixups(rnew)) == OK) {
        if ((res = file_walk(rnew))) {
            rnew->status = res;
            return rnew;
        }
        if (rnew->per_dir_config == r->per_dir_config) {
            if ((res = ap_run_type_checker(rnew)) 
                    || (res = ap_run_fixups(rnew))) {
                rnew->status = res;
            }
            return rnew;
        }  
    }
@@ -1555,10 +1559,15 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_file(const char *new_file,
             * do a file_walk, if it doesn't change the per_dir_config then
             * we know that we don't have to redo all the access checks
             */
            if ((res = file_walk(rnew) == OK)
                && (rnew->per_dir_config == r->per_dir_config)
                && (res = ap_run_type_checker(rnew)) == OK 
                && (res = ap_run_fixups(rnew)) == OK) {
        if ((res = file_walk(rnew))) {
            rnew->status = res;
            return rnew;
        }
        if (rnew->per_dir_config == r->per_dir_config) {
            if ((res = ap_run_type_checker(rnew)) 
                    || (res = ap_run_fixups(rnew))) {
                rnew->status = res;
            }
            return rnew;
        }  
        }