01.t revision 166065
1166065Spjd#!/bin/sh 2166065Spjd# $FreeBSD: head/tools/regression/fstest/tests/chflags/01.t 166065 2007-01-17 01:42:12Z pjd $ 3166065Spjd 4166065Spjddesc="chflags returns ENOTDIR if a component of the path prefix is not a directory" 5166065Spjd 6166065Spjddir=`dirname $0` 7166065Spjd. ${dir}/../misc.sh 8166065Spjd 9166065Spjdrequire chflags 10166065Spjd 11166065Spjdecho "1..5" 12166065Spjd 13166065Spjdn0=`namegen` 14166065Spjdn1=`namegen` 15166065Spjd 16166065Spjdexpect 0 mkdir ${n0} 0755 17166065Spjdexpect 0 create ${n0}/${n1} 0644 18166065Spjdexpect ENOTDIR chflags ${n0}/${n1}/test UF_IMMUTABLE 19166065Spjdexpect 0 unlink ${n0}/${n1} 20166065Spjdexpect 0 rmdir ${n0} 21