Skip to content

Commit

Permalink
Fix PROPFIND fail with 500 on symlinks to non existing file/dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
mid1221213 committed Nov 3, 2021
1 parent f5e3088 commit 6363d97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ngx_http_dav_ext_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,10 +896,9 @@ ngx_http_dav_ext_propfind(ngx_http_request_t *r, ngx_uint_t props)
ngx_cpystrn(last, name.data, name.len + 1);

if (ngx_de_info(filename, &dir) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno,
ngx_de_info_n " \"%s\" failed", filename);
rc = NGX_HTTP_INTERNAL_SERVER_ERROR;
break;
continue;
}
}

Expand Down

0 comments on commit 6363d97

Please sign in to comment.