ports/sysutils/munin-common/files/patch-node_sbin_munin-run
2020-03-12 13:19:43 +00:00

15 lines
515 B
Text

plugins run in taint mode because the uid is changed, so the path must not
contain writable directories.
--- node/sbin/munin-run.orig 2020-03-09 01:59:44 UTC
+++ node/sbin/munin-run
@@ -118,6 +118,9 @@ sub main
$ENV{$key} =~ /^(.*)$/s;
$ENV{$key} = $1;
}
+ # plugins run in taint mode because the uid is changed, so the path
+ # must not contain writable directories.
+ $ENV{PATH}='/bin:/sbin:/usr/bin:/usr/sbin:%%PREFIX%%/bin:%%PREFIX%%/sbin';
$0 =~ /^(.*)$/;
$0 = $1;