mirror of https://github.com/proot-me/proot.git
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}
|