summaryrefslogtreecommitdiffstats
path: root/sysutils/munin-node/files/patch-node__sbin__munin-node
blob: cb411ce8277905e65931a7da19fb16349e97fab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- node/sbin/munin-node.orig	2012-11-12 14:10:58.234196646 +0100
+++ node/sbin/munin-node	2012-11-12 14:11:19.591568597 +0100
@@ -54,6 +54,10 @@
         $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';
+
     parse_args();
 
     my $config = Munin::Node::Config->instance();
OpenPOWER on IntegriCloud