0
1
mirror of https://github.com/termux/proot.git synced 2024-11-11 13:49:26 +00:00
proot/tests/test-ffffffff.sh
2016-08-21 07:42:00 -04:00

13 lines
287 B
Bash

if [ -z `which mcookie` ] || [ -z `which touch` ] || [ -z `which stat` ] || [ -z `which grep` ] || [ -z `which rm` ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
touch ${TMP}
${PROOT} -0 stat -c %u:%g ${TMP} | grep 0:0
${PROOT} -i 123:456 stat -c %u:%g ${TMP} | grep 123:456
rm ${TMP}