06.t revision 166065
1#!/bin/sh
2# $FreeBSD: head/tools/regression/fstest/tests/chflags/06.t 166065 2007-01-17 01:42:12Z 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 UF_IMMUTABLE
19expect ELOOP chflags ${n1}/test UF_IMMUTABLE
20expect 0 unlink ${n0}
21expect 0 unlink ${n1}
22