]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - tools/regression/fstest/tests/chflags/06.t
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / tools / regression / fstest / tests / chflags / 06.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="chflags returns ELOOP if too many symbolic links were encountered in translating the pathname"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 require chflags
10
11 echo "1..6"
12
13 n0=`namegen`
14 n1=`namegen`
15
16 expect 0 symlink ${n0} ${n1}
17 expect 0 symlink ${n1} ${n0}
18 expect ELOOP chflags ${n0}/test SF_IMMUTABLE
19 expect ELOOP chflags ${n1}/test SF_IMMUTABLE
20 expect 0 unlink ${n0}
21 expect 0 unlink ${n1}