]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/regression/pjdfstest/tests/chflags/06.t
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / regression / pjdfstest / 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}