mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
15 lines
515 B
Text
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;
|