From ea0a37349fdac3149b723c3113140dfb65c71444 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 17 Oct 2023 11:36:27 +0200 Subject: Removing allow-symlinks.patch, not needed anymore (Closes: #1043415). Signed-off-by: Daniel Baumann --- debian/patches/upstream/0001-allow-symlinks.patch | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 debian/patches/upstream/0001-allow-symlinks.patch (limited to 'debian/patches/upstream/0001-allow-symlinks.patch') diff --git a/debian/patches/upstream/0001-allow-symlinks.patch b/debian/patches/upstream/0001-allow-symlinks.patch deleted file mode 100644 index 06bbd9356..000000000 --- a/debian/patches/upstream/0001-allow-symlinks.patch +++ /dev/null @@ -1,15 +0,0 @@ -Author: Lennart Weller -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 -@@ -513,7 +513,7 @@ static int mysendfile(struct web_client - bool is_dir = false; - char web_filename[FILENAME_MAX + 1]; - struct stat statbuf; -- if(!find_filename_to_serve(filename, web_filename, FILENAME_MAX, &statbuf, w, &is_dir)) { -+ if (stat(web_filename, &statbuf) != 0) { - w->response.data->content_type = CT_TEXT_HTML; - buffer_strcat(w->response.data, "File does not exist, or is not accessible: "); - buffer_strcat_htmlescape(w->response.data, web_filename); -- cgit v1.2.3