fd8901ff7b
- prevent leftovers from sed and patch otherwise these would be installed also The problem is that munin-nodes runs in perl taint mode and after a SIGHUP p5-Net-Server thinks that the path is tainted and unsets the complete path, this causes all plugins which do not use an absolute path to utilities they call to fail. The fix is to set a well known good path. Obtained from: OpenBSD PR: ports/155109
12 lines
432 B
Text
12 lines
432 B
Text
--- node/sbin/munin-run.orig Wed Oct 20 14:50:43 2010
|
|
+++ node/sbin/munin-run Wed Oct 20 14:52:51 2010
|
|
@@ -53,6 +53,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;
|