summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests/chflags/02.t
blob: 03c5c7f80bd44f50f6b75d6b983d92d705b00fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# $FreeBSD$

desc="chflags returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"

dir=`dirname $0`
. ${dir}/../misc.sh

require chflags

echo "1..6"

expect 0 create ${name255} 0644
expect 0 chflags ${name255} SF_IMMUTABLE
expect SF_IMMUTABLE stat ${name255} flags
expect 0 chflags ${name255} none
expect 0 unlink ${name255}
expect ENAMETOOLONG chflags ${name256} SF_IMMUTABLE
OpenPOWER on IntegriCloud