1*ec7c50bfSpedro#!/bin/sh 2*ec7c50bfSpedro# $FreeBSD: src/tools/regression/fstest/tests/chmod/04.t,v 1.1 2007/01/17 01:42:08 pjd Exp $ 3*ec7c50bfSpedro 4*ec7c50bfSpedrodesc="chmod returns ENOENT if the named file does not exist" 5*ec7c50bfSpedro 6*ec7c50bfSpedron0=`namegen` 7*ec7c50bfSpedron1=`namegen` 8*ec7c50bfSpedro 9*ec7c50bfSpedroexpect 0 mkdir ${n0} 0755 10*ec7c50bfSpedroexpect ENOENT chmod ${n0}/${n1}/test 0644 11*ec7c50bfSpedroexpect ENOENT chmod ${n0}/${n1} 0644 12*ec7c50bfSpedroexpect 0 rmdir ${n0} 13