proot/test/test-ffffffff.sh

13 lines
287 B
Bash
Raw Normal View History

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}