]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - tools/regression/fstest/tests/chown/02.t
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / tools / regression / fstest / tests / chown / 02.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 desc="chown returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"
5
6 dir=`dirname $0`
7 . ${dir}/../misc.sh
8
9 echo "1..5"
10
11 expect 0 create ${name255} 0644
12 expect 0 chown ${name255} 65534 65534
13 expect 65534,65534 stat ${name255} uid,gid
14 expect 0 unlink ${name255}
15 expect ENAMETOOLONG chown ${name256} 65533 65533