openbsd-ports/net/munin/patches/patch-node_sbin_munin-run

14 lines
504 B
Plaintext

$OpenBSD: patch-node_sbin_munin-run,v 1.1 2010/10/23 15:52:23 sthen Exp $
--- node/sbin/munin-run.orig Wed Oct 20 14:50:43 2010
+++ node/sbin/munin-run Wed Oct 20 14:52:51 2010
@@ -53,6 +53,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;