2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/01.t 211474 2010-08-18 22:06:43Z pjd $
4 desc="open returns ENOTDIR if a component of the path prefix is not a directory"
14 expect 0 mkdir ${n0} 0755
15 for type in regular fifo block char socket; do
16 create_file ${type} ${n0}/${n1}
17 expect ENOTDIR open ${n0}/${n1}/test O_RDONLY
18 expect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644
19 expect 0 unlink ${n0}/${n1}