summaryrefslogtreecommitdiffstats
path: root/debian/patches/0011-netdata-support-symlinks.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-29 14:29:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-29 14:36:25 +0000
commit97ba90b0bbd7fcf6703c412fe8cdcc0f837b9328 (patch)
tree98090e858ba5101fb0d5652ee55d99cd2ebbf226 /debian/patches/0011-netdata-support-symlinks.patch
parentAdding patch to hide social-media buttons in navbar to declutter the interface. (diff)
downloadnetdata-97ba90b0bbd7fcf6703c412fe8cdcc0f837b9328.tar.xz
netdata-97ba90b0bbd7fcf6703c412fe8cdcc0f837b9328.zip
Splitting some patches and grouping them thematically together.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0011-netdata-support-symlinks.patch')
-rw-r--r--debian/patches/0011-netdata-support-symlinks.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/0011-netdata-support-symlinks.patch b/debian/patches/0011-netdata-support-symlinks.patch
new file mode 100644
index 000000000..081021155
--- /dev/null
+++ b/debian/patches/0011-netdata-support-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
+@@ -372,7 +372,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: ");