about summary refs log tree commit diff
path: root/pkgs/tools/system/netdata/web_access.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/netdata/web_access.patch')
-rw-r--r--pkgs/tools/system/netdata/web_access.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/pkgs/tools/system/netdata/web_access.patch b/pkgs/tools/system/netdata/web_access.patch
deleted file mode 100644
index 3c0fbf7507d7..000000000000
--- a/pkgs/tools/system/netdata/web_access.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/src/web_client.c.orig	2016-04-17 11:34:20.044455323 +0200
-+++ b/src/web_client.c	2016-04-17 11:34:47.432897957 +0200
-@@ -291,14 +291,14 @@
- 		buffer_sprintf(w->response.data, "File '%s' does not exist, or is not accessible.", filename);
- 		return 404;
- 	}
--
-+#if 0
- 	// check if the file is owned by us
- 	if(stat.st_uid != web_files_uid()) {
- 		error("%llu: File '%s' is owned by user %d (I run as user %d). Access Denied.", w->id, webfilename, stat.st_uid, getuid());
- 		buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename);
- 		return 403;
- 	}
--
-+#endif
- 	if((stat.st_mode & S_IFMT) == S_IFDIR) {
- 		snprintf(webfilename, FILENAME_MAX+1, "%s/index.html", filename);
- 		return mysendfile(w, webfilename);