From 0bbc0c292e607f3a40017a23d237c5d44eb30783 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:22:32 +0200 Subject: Adding debian version 1.12.0-1+deb10u1. Signed-off-by: Daniel Baumann --- debian/patches/upstream/0001-allow-symlinks.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/patches/upstream/0001-allow-symlinks.patch (limited to 'debian/patches/upstream') diff --git a/debian/patches/upstream/0001-allow-symlinks.patch b/debian/patches/upstream/0001-allow-symlinks.patch new file mode 100644 index 0000000..bfc589b --- /dev/null +++ b/debian/patches/upstream/0001-allow-symlinks.patch @@ -0,0 +1,15 @@ +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 +@@ -376,7 +376,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; + buffer_strcat(w->response.data, "File does not exist, or is not accessible: "); -- cgit v1.2.3