mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
netdata: 1.5.0 -> 1.7.0
This commit is contained in:
parent
d72747eacd
commit
6b3d9144b0
@ -1,14 +1,14 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec{
|
||||||
version = "1.5.0";
|
version = "1.7.0";
|
||||||
name = "netdata-${version}";
|
name = "netdata-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
owner = "firehol";
|
owner = "firehol";
|
||||||
repo = "netdata";
|
repo = "netdata";
|
||||||
sha256 = "1nsv0s11ai1kvig9xr4cz2f2lalvilpbfjpd8fdfqk9fak690zhz";
|
sha256 = "1fv01jnbgwbafsxavlji90zdqizn8m4nfg9ivc4sbi05j036bg6n";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ autoreconfHook zlib pkgconfig libuuid ];
|
buildInputs = [ autoreconfHook zlib pkgconfig libuuid ];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--- a/src/web_client.c.orig
|
--- a/src/web_client.c.orig
|
||||||
+++ b/src/web_client.c
|
+++ b/src/web_client.c
|
||||||
@@ -331,7 +331,7 @@
|
@@ -302,7 +302,7 @@
|
||||||
buffer_sprintf(w->response.data, "File '%s' does not exist, or is not accessible.", webfilename);
|
buffer_strcat_htmlescape(w->response.data, webfilename);
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
-
|
-
|
||||||
@ -9,8 +9,8 @@
|
|||||||
// check if the file is owned by expected user
|
// check if the file is owned by expected user
|
||||||
if(stat.st_uid != web_files_uid()) {
|
if(stat.st_uid != web_files_uid()) {
|
||||||
error("%llu: File '%s' is owned by user %u (expected user %u). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
|
error("%llu: File '%s' is owned by user %u (expected user %u). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
|
||||||
@@ -345,7 +345,7 @@
|
@@ -320,7 +320,7 @@
|
||||||
buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", webfilename);
|
buffer_strcat_htmlescape(w->response.data, webfilename);
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
-
|
-
|
||||||
|
Loading…
Reference in New Issue
Block a user