From 6405eb783a2fee9811806486eddc20e63e593eb4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 17 Nov 2011 16:31:17 +0100 Subject: [PATCH] xbps-src: sanitize path for IN_CHROOT opts too. --- xbps-src/xbps-src.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index 518483f6d48..1ed41f8693e 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -23,7 +23,7 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #- -readonly XBPS_SRC_BUILD_VERSION=20111117-1 +readonly XBPS_SRC_BUILD_VERSION=20111117-2 XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf PROGNAME=$(basename $0) @@ -323,6 +323,9 @@ if [ -z "$IN_CHROOT" ]; then MYPATH="$MYPATH:$XBPS_MASTERDIR/usr/local/sbin" export PATH="$MYPATH" else + MYPATH="/tools/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin" + MYPATH="$MYPATH:/usr/local/bin:/usr/lib/perl5/core_perl/bin" + export PATH="$MYPATH" if [ -n "$XBPS_CCACHE" ]; then CCACHEPATH="/usr/lib/ccache/bin" if [ -n "$XBPS_HOSTDIR" ]; then