blob: 7df915f73608482327d14a1a8854f9f5ad4ee955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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: ");
|