summaryrefslogtreecommitdiff
path: root/sysutils/munin-node/files/patch-node__sbin__munin-node
blob: 75a1cb707116d2b2ae7c2e05755d989ef546e084 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- node/sbin/munin-node.orig	Wed Oct 20 14:51:29 2010
+++ node/sbin/munin-node	Wed Oct 20 14:52:34 2010
@@ -56,6 +56,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;