$OpenBSD: patch-node_munin-node_in,v 1.1.1.1 2009/11/17 11:11:21 sthen Exp $
--- node/munin-node.in.orig	Mon Nov 16 18:29:14 2009
+++ node/munin-node.in	Mon Nov 16 18:28:51 2009
@@ -42,6 +42,10 @@ foreach my $key (keys %ENV)
         $ENV{$key} = $1 || ''; # It sometimes happens that the match was empty
 }
 
+# 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 =~ /^(.*)$/; # for some strange reason won't "$0 = $0;" work.
 $0 = $1;
 
