From 23281e486bf1998cdce9709b086cf89cc2337338 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 May 2023 17:25:37 +0200 Subject: Refreshing allow-symlinks.patch. Signed-off-by: Daniel Baumann --- debian/patches/upstream/0001-allow-symlinks.patch | 4 ++-- 1 file 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: "); -- cgit v1.2.3