mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 00:16:38 +02:00
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Patch-Source: https://github.com/arut/nginx-dav-ext-module/pull/56
|
|
--
|
|
From ed7b1d530cf85b2cbc85166888fc63929efcb4ed Mon Sep 17 00:00:00 2001
|
|
From: Rozhuk Ivan <rozhuk.im@gmail.com>
|
|
Date: Wed, 15 Apr 2020 04:57:07 +0300
|
|
Subject: [PATCH] #55 Fix PROPFIND fail with 500 on simlinks to non exist
|
|
file/dir.
|
|
|
|
---
|
|
ngx_http_dav_ext_module.c | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/ngx_http_dav_ext_module.c b/ngx_http_dav_ext_module.c
|
|
index 0d6d067..cdb213d 100644
|
|
--- a/ngx_http_dav_ext_module.c
|
|
+++ b/ngx_http_dav_ext_module.c
|
|
@@ -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;
|
|
}
|
|
}
|
|
|