summaryrefslogtreecommitdiff
path: root/sysutils/munin-common/files/patch-node_sbin_munin-run
blob: d1af74d4a39848dd048539d0af6b4fab0bd290d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- node/sbin/munin-run.orig	2020-01-15 21:12:19 UTC
+++ node/sbin/munin-run
@@ -110,6 +110,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;