ports/sysutils/munin-common/files/patch-node_sbin_munin-node-configure
Mathieu Arnold ed49e7eb1c Update to 2.0.54.
While there, document why patches are there.
2020-01-27 14:00:11 +00:00

16 lines
557 B
Text

plugins run in taint mode because the uid is changed, so the path must not
contain writable directories.
--- node/sbin/munin-node-configure.orig 2014-11-24 21:46:24 UTC
+++ node/sbin/munin-node-configure
@@ -23,6 +23,10 @@ use warnings;
use Getopt::Long;
+# 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;