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