proot/test/test-pppppppp.sh
2019-12-19 15:37:02 -05:00

18 lines
313 B
Bash

if [ -z `which mcookie` ] || [ -z `which true` ] || [ -z `which mkdir` ]|| [ -z `which env` ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
mkdir -p ${TMP}/true
! ${PROOT} true
if [ $? -eq 0 ]; then
exit 125;
fi
env PATH=${TMP}:${PATH} ${PROOT} true
env PATH=${TMP}:${PATH} ${PROOT} env true
rm -fr ${TMP}