1#!/bin/sh 2# $FreeBSD: head/tools/regression/pjdfstest/tests/chflags/06.t 211352 2010-08-15 21:24:17Z pjd $ 3 4desc="chflags returns ELOOP if too many symbolic links were encountered in translating the pathname" 5 6dir=`dirname $0` 7. ${dir}/../misc.sh 8 9require chflags 10 11echo "1..6" 12 13n0=`namegen` 14n1=`namegen` 15 16expect 0 symlink ${n0} ${n1} 17expect 0 symlink ${n1} ${n0} 18expect ELOOP chflags ${n0}/test SF_IMMUTABLE 19expect ELOOP chflags ${n1}/test SF_IMMUTABLE 20expect 0 unlink ${n0} 21expect 0 unlink ${n1} 22