mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
- 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
13 lines
486 B
Text
13 lines
486 B
Text
--- node/sbin/munin-node-configure.orig Tue Oct 5 22:36:04 2010
|
|
+++ node/sbin/munin-node-configure Tue Oct 5 22:37:57 2010
|
|
@@ -28,6 +28,10 @@ use POSIX ();
|
|
use Data::Dumper;
|
|
use Carp;
|
|
|
|
+# 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';
|
|
+
|
|
use Munin::Common::Defaults;
|
|
use Munin::Node::Configure::PluginList;
|
|
use Munin::Node::Configure::Debug;
|