freebsd-ports/sysutils/munin-node/files/patch-node__sbin__munin-node
Florian Smeets 8b61b2876c - Update to 2.0.6 based on [1]
- Add support for ada disk devices to hddtemp_smartctl [2]
- Add a patch for upstream bug 1251 to prevent huge munin-graph.log files

PR:		ports/171116 [1]
PR:		ports/169287 [2]
Submitted by:	mm [1], TAKEMON Takashi <takemon@bamboogate.co.jp> [2]
2012-09-13 22:00:33 +00:00

15 lines
493 B
Text

--- 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();