0
1
mirror of https://github.com/termux/proot.git synced 2024-09-22 08:31:06 +00:00
proot/tests/test-d1be631a.sh
2016-08-21 07:42:00 -04:00

14 lines
219 B
Bash

if [ -z `which mknod`] || [ `id -u` -eq 0 ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
! ${PROOT} mknod ${TMP} b 1 1
[ $? -eq 0 ]
! ${PROOT} -i 123:456 mknod ${TMP} b 1 1
[ $? -eq 0 ]
${PROOT} -0 mknod ${TMP} b 1 1