include BINDIR and SBINDIR in the sanitized PATH
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
parent
8a44067838
commit
a82a2b5f7c
@ -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";;
|
||||||
|
Loading…
Reference in New Issue
Block a user