biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / system / netdata / ndsudo-fix-path.patch
blob0ec9a63231f0c0387005a91bd176f8d1e61c2fd4
1 # See https://github.com/netdata/netdata/pull/17377#issuecomment-2183017868
2 # https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93
4 diff --git a/src/collectors/plugins.d/ndsudo.c b/src/collectors/plugins.d/ndsudo.c
5 index d53ca9f28..b42a121bf 100644
6 --- a/src/collectors/plugins.d/ndsudo.c
7 +++ b/src/collectors/plugins.d/ndsudo.c
8 @@ -357,9 +357,6 @@ int main(int argc, char *argv[]) {
9 return 3;
12 - char new_path[] = "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";
13 - putenv(new_path);
15 setuid(0);
16 setgid(0);
17 setegid(0);