blob: 5b569756ad851ff4203332c7a9770f73d392b079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# $FreeBSD: src/tools/regression/fstest/tests/chflags/02.t,v 1.1 2007/01/17 01:42:08 pjd Exp $
desc="chflags returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"
expect 0 create ${name255} 0644
expect 0 chflags ${name255} UF_IMMUTABLE
expect UF_IMMUTABLE stat ${name255} flags
expect 0 chflags ${name255} none
expect 0 unlink ${name255}
expect ENAMETOOLONG chflags ${name256} UF_IMMUTABLE
|