xbps-src: quote PATH while entering the chroot.

... otherwise if PATH contains whitespaces you could be fucked up.
This commit is contained in:
Juan RP 2014-12-08 18:27:19 +01:00
parent aa302ce88d
commit a5193023b9

View file

@ -200,7 +200,7 @@ chroot_handler() {
[ -n "$XBPS_PKG_OPTIONS" ] && arg="$arg -o $XBPS_PKG_OPTIONS" [ -n "$XBPS_PKG_OPTIONS" ] && arg="$arg -o $XBPS_PKG_OPTIONS"
action="$arg $action" 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=$? xbps-uchroot ${_chargs} $XBPS_MASTERDIR /void-packages/xbps-src $action $pkg || rv=$?
fi fi