01.t revision 166065
10Sstevel@tonic-gate#!/bin/sh 20Sstevel@tonic-gate# $FreeBSD: head/tools/regression/fstest/tests/open/01.t 166065 2007-01-17 01:42:12Z pjd $ 30Sstevel@tonic-gate 40Sstevel@tonic-gatedesc="open returns ENOTDIR if a component of the path prefix is not a directory" 50Sstevel@tonic-gate 60Sstevel@tonic-gatedir=`dirname $0` 70Sstevel@tonic-gate. ${dir}/../misc.sh 80Sstevel@tonic-gate 90Sstevel@tonic-gateecho "1..5" 100Sstevel@tonic-gate 110Sstevel@tonic-gaten0=`namegen` 120Sstevel@tonic-gaten1=`namegen` 130Sstevel@tonic-gate 140Sstevel@tonic-gateexpect 0 mkdir ${n0} 0755 150Sstevel@tonic-gateexpect 0 create ${n0}/${n1} 0644 160Sstevel@tonic-gateexpect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644 170Sstevel@tonic-gateexpect 0 unlink ${n0}/${n1} 180Sstevel@tonic-gateexpect 0 rmdir ${n0} 190Sstevel@tonic-gate