]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - tools/regression/fstest/tests/chflags/02.t
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / tools / regression / fstest / tests / chflags / 02.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="chflags returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 require chflags
10
11 echo "1..6"
12
13 expect 0 create ${name255} 0644
14 expect 0 chflags ${name255} UF_IMMUTABLE
15 expect UF_IMMUTABLE stat ${name255} flags
16 expect 0 chflags ${name255} none
17 expect 0 unlink ${name255}
18 expect ENAMETOOLONG chflags ${name256} UF_IMMUTABLE