mirror of
https://github.com/termux/proot.git
synced 2024-11-11 13:49:26 +00:00
13 lines
287 B
Bash
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}
|