1#!/bin/sh 2# $FreeBSD: src/tools/regression/fstest/tests/link/11.t,v 1.1 2007/01/17 01:42:09 pjd Exp $ 3 4desc="link returns EPERM if the source file is a directory" 5 6n0=`namegen` 7n1=`namegen` 8n2=`namegen` 9 10expect 0 mkdir ${n0} 0755 11expect EPERM link ${n0} ${n1} 12expect 0 rmdir ${n0} 13 14expect 0 mkdir ${n0} 0755 15expect 0 chown ${n0} 65534 65534 16cdir=`pwd` 17cd ${n0} 18 19expect 0 -u 65534 -g 65534 mkdir ${n1} 0755 20expect EPERM -u 65534 -g 65534 link ${n1} ${n2} 21expect 0 -u 65534 -g 65534 rmdir ${n1} 22 23cd ${cdir} 24expect 0 rmdir ${n0} 25