From a82a2b5f7c4d42e4d12f066aa35708501dc8794c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 12 Feb 2013 17:09:51 -0500 Subject: [PATCH] include BINDIR and SBINDIR in the sanitized PATH Signed-off-by: Andrew Gregory --- sh/functions.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/functions.sh.in b/sh/functions.sh.in index 23f3f627..52a8ae77 100644 --- a/sh/functions.sh.in +++ b/sh/functions.sh.in @@ -49,7 +49,7 @@ _sanitize_path() for p in $PATH; do case "$p" in @LIBEXECDIR@/bin|@LIBEXECDIR@/sbin);; - @PREFIX@/bin|@PREFIX@/sbin|/usr/bin|/usr/sbin);; + @BINDIR@|@SBINDIR@|/usr/bin|/usr/sbin);; @PKG_PREFIX@/bin|@PKG_PREFIX@/sbin);; @LOCAL_PREFIX@/bin|@LOCAL_PREFIX@/sbin);; *) path="$path${path:+:}$p";;