1#!/bin/sh 2# $FreeBSD: head/tools/regression/pjdfstest/tests/chflags/01.t 211474 2010-08-18 22:06:43Z pjd $ 3 4desc="chflags returns ENOTDIR if a component of the path prefix is not a directory" 5 6dir=`dirname $0` 7. ${dir}/../misc.sh 8 9require chflags 10 11echo "1..17" 12 13n0=`namegen` 14n1=`namegen` 15 16expect 0 mkdir ${n0} 0755 17for type in regular fifo block char socket; do 18 create_file ${type} ${n0}/${n1} 19 expect ENOTDIR chflags ${n0}/${n1}/test SF_IMMUTABLE 20 expect 0 unlink ${n0}/${n1} 21done 22expect 0 rmdir ${n0} 23