From a5193023b914ec8da940d103dd3cde53b74b5dbe Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 8 Dec 2014 18:27:19 +0100 Subject: [PATCH] xbps-src: quote PATH while entering the chroot. ... otherwise if PATH contains whitespaces you could be fucked up. --- common/xbps-src/shutils/chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 97e4aff57f0..fe891109bf8 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -200,7 +200,7 @@ chroot_handler() { [ -n "$XBPS_PKG_OPTIONS" ] && arg="$arg -o $XBPS_PKG_OPTIONS" action="$arg $action" - env -i PATH=/usr/bin:/usr/sbin:$PATH HOME=/tmp IN_CHROOT=1 LANG=en_US.UTF-8 \ + env -i PATH="/usr/bin:/usr/sbin:$PATH" HOME=/tmp IN_CHROOT=1 LANG=en_US.UTF-8 \ xbps-uchroot ${_chargs} $XBPS_MASTERDIR /void-packages/xbps-src $action $pkg || rv=$? fi