xref: /openbsd/regress/sys/ffs/tests/chmod/02.t (revision e5dd7070)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/chmod/02.t,v 1.1 2007/01/17 01:42:08 pjd Exp $
3
4desc="chmod returns ENAMETOOLONG if a component of a pathname exceeded 255 characters"
5
6expect 0 create ${name255} 0644
7expect 0 chmod ${name255} 0620
8expect 0620 stat ${name255} mode
9expect 0 unlink ${name255}
10expect ENAMETOOLONG chmod ${name256} 0620
11