diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches/upstream/0001-allow-symlinks.patch | 15 |
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..7df915f --- /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 +@@ -381,7 +381,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: "); |