summaryrefslogtreecommitdiff
path: root/sysutils/munin-node/files/patch-node__sbin__munin-node
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2011-03-09 23:40:14 +0000
committerFlorian Smeets <flo@FreeBSD.org>2011-03-09 23:40:14 +0000
commitfd8901ff7be23ae69042b5ac103571cbd86917b6 (patch)
tree442e7d48790d63e8aeda233ad044754405827ce9 /sysutils/munin-node/files/patch-node__sbin__munin-node
parentFix lib depends after eggdrop update (diff)
- fix a bug where plugins would stop graping data after a SIGHUP to munin-node
- 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
Notes
Notes: svn path=/head/; revision=270582
Diffstat (limited to 'sysutils/munin-node/files/patch-node__sbin__munin-node')
-rw-r--r--sysutils/munin-node/files/patch-node__sbin__munin-node12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/munin-node/files/patch-node__sbin__munin-node b/sysutils/munin-node/files/patch-node__sbin__munin-node
new file mode 100644
index 000000000000..75a1cb707116
--- /dev/null
+++ b/sysutils/munin-node/files/patch-node__sbin__munin-node
@@ -0,0 +1,12 @@
+--- node/sbin/munin-node.orig Wed Oct 20 14:51:29 2010
++++ node/sbin/munin-node Wed Oct 20 14:52:34 2010
+@@ -56,6 +56,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;