blob: 792c9a645408c52c0f32545fcdb32bde08bde994 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- node/sbin/munin-node.orig 2012-07-24 12:45:57.000000000 +0200
+++ node/sbin/munin-node 2012-07-30 11:30:49.735734436 +0200
@@ -53,8 +53,11 @@
$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 =~ /^(.*)$/;
$0 = $1;
parse_args();
|