1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/rename/11.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="rename returns ELOOP if too many symbolic links were encountered in translating one of the pathnames" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..10" 10271294Sngie 11271294Sngien0=`namegen` 12271294Sngien1=`namegen` 13271294Sngien2=`namegen` 14271294Sngie 15271294Sngieexpect 0 symlink ${n0} ${n1} 16271294Sngieexpect 0 symlink ${n1} ${n0} 17271294Sngieexpect ELOOP rename ${n0}/test ${n2} 18271294Sngieexpect ELOOP rename ${n1}/test ${n2} 19271294Sngieexpect 0 create ${n2} 0644 20271294Sngieexpect ELOOP rename ${n2} ${n0}/test 21271294Sngieexpect ELOOP rename ${n2} ${n1}/test 22271294Sngieexpect 0 unlink ${n0} 23271294Sngieexpect 0 unlink ${n1} 24271294Sngieexpect 0 unlink ${n2} 25