]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - tools/regression/fstest/tests/chflags/02.t
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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} SF_IMMUTABLE
15 expect SF_IMMUTABLE stat ${name255} flags
16 expect 0 chflags ${name255} none
17 expect 0 unlink ${name255}
18 expect ENAMETOOLONG chflags ${name256} SF_IMMUTABLE