summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-09 15:25:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-09 15:25:43 +0000
commit23281e486bf1998cdce9709b086cf89cc2337338 (patch)
tree292f57e0937619c5d33fef8321215103e2476810
parentMerging upstream version 1.39.0. (diff)
downloadnetdata-23281e486bf1998cdce9709b086cf89cc2337338.tar.xz
netdata-23281e486bf1998cdce9709b086cf89cc2337338.zip
Refreshing allow-symlinks.patch.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/upstream/0001-allow-symlinks.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/patches/upstream/0001-allow-symlinks.patch b/debian/patches/upstream/0001-allow-symlinks.patch
index 7df915f73..8619327ec 100644
--- a/debian/patches/upstream/0001-allow-symlinks.patch
+++ b/debian/patches/upstream/0001-allow-symlinks.patch
@@ -4,12 +4,12 @@ Description: Remove file serve restrictions for symlinks.
diff -Naurp netdata.orig/web/server/web_client.c netdata/web/server/web_client.c
--- netdata.orig/web/server/web_client.c
+++ netdata/web/server/web_client.c
-@@ -381,7 +381,7 @@ int mysendfile(struct web_client *w, cha
+@@ -379,7 +379,7 @@ int mysendfile(struct web_client *w, cha
int done = 0;
while(!done) {
// check if the file exists
- if (lstat(webfilename, &statbuf) != 0) {
+ if (stat(webfilename, &statbuf) != 0) {
debug(D_WEB_CLIENT_ACCESS, "%llu: File '%s' is not found.", w->id, webfilename);
- w->response.data->contenttype = CT_TEXT_HTML;
+ w->response.data->content_type = CT_TEXT_HTML;
buffer_strcat(w->response.data, "File does not exist, or is not accessible: ");