include BINDIR and SBINDIR in the sanitized PATH

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
Andrew Gregory 2013-02-12 17:09:51 -05:00 committed by William Hubbs
parent 8a44067838
commit a82a2b5f7c

View File

@ -49,7 +49,7 @@ _sanitize_path()
for p in $PATH; do for p in $PATH; do
case "$p" in case "$p" in
@LIBEXECDIR@/bin|@LIBEXECDIR@/sbin);; @LIBEXECDIR@/bin|@LIBEXECDIR@/sbin);;
@PREFIX@/bin|@PREFIX@/sbin|/usr/bin|/usr/sbin);; @BINDIR@|@SBINDIR@|/usr/bin|/usr/sbin);;
@PKG_PREFIX@/bin|@PKG_PREFIX@/sbin);; @PKG_PREFIX@/bin|@PKG_PREFIX@/sbin);;
@LOCAL_PREFIX@/bin|@LOCAL_PREFIX@/sbin);; @LOCAL_PREFIX@/bin|@LOCAL_PREFIX@/sbin);;
*) path="$path${path:+:}$p";; *) path="$path${path:+:}$p";;