pkgsrc/net/netsaint-plugins/patches/patch-ad
jlam 55f72a3ba0 Modify the awk script that searches the PATH for tools to avoid looking
at any directories starting with ${WRKDIR}.  This fixes the various
netsaint plugin scripts that had hardcoded ${WRKDIR} paths to tools.
Bump the PKGREVISION to 8.
2005-06-20 02:59:36 +00:00

16 lines
390 B
Text

$NetBSD: patch-ad,v 1.1 2005/06/20 02:59:36 jlam Exp $
--- plugins-scripts/subst.in.orig 2000-08-31 23:47:35.000000000 -0400
+++ plugins-scripts/subst.in
@@ -21,6 +21,11 @@ function which(c,path) {
BEGIN {
split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/);
+ for (dir in path) {
+ if (path[dir] ~ "@WRKDIR@") {
+ delete path[dir];
+ }
+ }
}
# scripting language (first line)