summaryrefslogtreecommitdiffstats
path: root/debian/patches/upstream/0001-allow-symlinks.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:22:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:22:32 +0000
commit0bbc0c292e607f3a40017a23d237c5d44eb30783 (patch)
tree550fdcacb3ba2f56c4a9cf93cab9581fd9b3ab97 /debian/patches/upstream/0001-allow-symlinks.patch
parentAdding upstream version 1.12.0. (diff)
downloadnetdata-debian.tar.xz
netdata-debian.zip
Adding debian version 1.12.0-1+deb10u1.debian/1.12.0-1+deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/upstream/0001-allow-symlinks.patch')
-rw-r--r--debian/patches/upstream/0001-allow-symlinks.patch15
1 files changed, 15 insertions, 0 deletions
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 <lhw@ring0.de>
+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: ");