xref: /freebsd/contrib/pjdfstest/tests/chown/06.t (revision 3416500aef140042c64bc149cb1ec6620483bc44)
1#!/bin/sh
2# vim: filetype=sh noexpandtab ts=8 sw=8
3# $FreeBSD: head/tools/regression/pjdfstest/tests/chown/06.t 211410 2010-08-17 06:08:09Z pjd $
4
5desc="chown returns ELOOP if too many symbolic links were encountered in translating the pathname"
6
7dir=`dirname $0`
8. ${dir}/../misc.sh
9
10echo "1..10"
11
12n0=`namegen`
13n1=`namegen`
14
15expect 0 symlink ${n0} ${n1}
16expect 0 symlink ${n1} ${n0}
17expect ELOOP chown ${n0} 65534 65534
18expect ELOOP chown ${n1} 65534 65534
19expect ELOOP chown ${n0}/test 65534 65534
20expect ELOOP chown ${n1}/test 65534 65534
21expect ELOOP lchown ${n0}/test 65534 65534
22expect ELOOP lchown ${n1}/test 65534 65534
23expect 0 unlink ${n0}
24expect 0 unlink ${n1}
25