opnsense-ports/sysutils/munin-common/files/patch-node_sbin_munin-run
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

12 lines
406 B
Text

--- node/sbin/munin-run.orig 2014-11-24 21:46:24 UTC
+++ node/sbin/munin-run
@@ -52,6 +52,9 @@ sub main
$ENV{$key} =~ /^(.*)$/;
$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;