aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh.in
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-12 17:09:51 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-23 20:30:40 -0600
commita82a2b5f7c4d42e4d12f066aa35708501dc8794c (patch)
treedcff28fdff050f79bc871854e73d61f8f9b52e6e /sh/functions.sh.in
parent8a44067838e268db88ea2158258f8006cb1344b7 (diff)
include BINDIR and SBINDIR in the sanitized PATH
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'sh/functions.sh.in')
-rw-r--r--sh/functions.sh.in2
1 files changed, 1 insertions, 1 deletions
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";;