1#!/bin/sh 2# $FreeBSD: head/tools/regression/pjdfstest/tests/link/04.t 211352 2010-08-15 21:24:17Z pjd $ 3 4desc="link returns ENOENT if a component of either path prefix does not exist" 5 6dir=`dirname $0` 7. ${dir}/../misc.sh 8 9echo "1..6" 10 11n0=`namegen` 12n1=`namegen` 13n2=`namegen` 14 15expect 0 mkdir ${n0} 0755 16expect ENOENT link ${n0}/${n1}/test ${n2} 17expect 0 create ${n2} 0644 18expect ENOENT link ${n2} ${n0}/${n1}/test 19expect 0 unlink ${n2} 20expect 0 rmdir ${n0} 21