2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # $FreeBSD: head/tools/regression/pjdfstest/tests/unlink/01.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="unlink returns ENOTDIR if a component of the path prefix is not a directory"
15 expect 0 mkdir ${n0} 0755
16 expect 0 create ${n0}/${n1} 0644
17 expect ENOTDIR unlink ${n0}/${n1}/test
18 expect 0 unlink ${n0}/${n1}