1#!/bin/sh 2# $FreeBSD: head/tools/regression/pjdfstest/tests/open/08.t 211352 2010-08-15 21:24:17Z pjd $ 3 4desc="open returns EACCES when O_CREAT is specified, the file does not exist, and the directory in which it is to be created does not permit writing" 5 6dir=`dirname $0` 7. ${dir}/../misc.sh 8 9echo "1..3" 10 11n0=`namegen` 12n1=`namegen` 13 14expect 0 mkdir ${n0} 0755 15cdir=`pwd` 16cd ${n0} 17expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_CREAT 0644 18cd ${cdir} 19expect 0 rmdir ${n0} 20