More test cases about permissions

This commit is contained in:
lostd 2015-07-02 00:58:01 +01:00
parent ac36d0b287
commit 018b52a8ee

View file

@ -18,8 +18,11 @@ ln -s normal-dir ln-normal-dir
ln -s nowhere ln-nowhere ln -s nowhere ln-nowhere
mkfifo mk-fifo mkfifo mk-fifo
touch no-access && chmod 000 no-access touch no-access && chmod 000 no-access
mkdir no-access-dir && chmod 000 no-access-dir
ln -s ../normal.txt normal-dir/ln-normal.txt ln -s ../normal.txt normal-dir/ln-normal.txt
ln -s ../normal.txt normal-dir/ln-normal ln -s ../normal.txt normal-dir/ln-normal
echo 'int main(void) { *((char *)0) = 0; }' > ill.c echo 'int main(void) { *((char *)0) = 0; }' > ill.c
make ill > /dev/null make ill > /dev/null
echo 'test/ill' > ill.sh echo 'test/ill' > ill.sh
mkdir empty-dir
echo 'chmod 000 test' > lock.sh