08.t revision 271294
1271294Sngie#!/bin/sh 2271294Sngie# $FreeBSD: head/tools/regression/pjdfstest/tests/open/08.t 211352 2010-08-15 21:24:17Z pjd $ 3271294Sngie 4271294Sngiedesc="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" 5271294Sngie 6271294Sngiedir=`dirname $0` 7271294Sngie. ${dir}/../misc.sh 8271294Sngie 9271294Sngieecho "1..3" 10271294Sngie 11271294Sngien0=`namegen` 12271294Sngien1=`namegen` 13271294Sngie 14271294Sngieexpect 0 mkdir ${n0} 0755 15271294Sngiecdir=`pwd` 16271294Sngiecd ${n0} 17271294Sngieexpect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_CREAT 0644 18271294Sngiecd ${cdir} 19271294Sngieexpect 0 rmdir ${n0} 20