Fix setgid/setuid typo
[findutils.git] / find / testsuite / find.posix / sv-bug-19613.exp
blob44423ef0bbf9bb73cb85da67693e2dc71a177ec4
1 # tests for Savannah bug 19613 ("find -L -type f" fails on symlink loops)
2 exec rm -rf tmp
3 exec mkdir tmp tmp/subdir
4 exec ln -s a tmp/subdir/b
5 exec ln -s b tmp/subdir/a
7 # We want to distinguish between the correct behaviour (error message
8 # and return 1 because of the loop) and the failure case (assertion
9 # failure in 4.3.3). To do that we just check that the "tmp/vanilla"
10 # file is also found.
12 touch tmp/vanilla
13 find_start f { -L tmp -depth -type f}
14 exec rm -rf tmp