1#!/bin/sh 2# $FreeBSD: src/tools/regression/fstest/tests/rename/13.t,v 1.1 2007/01/17 01:42:10 pjd Exp $ 3 4desc="rename returns ENOTDIR when the 'from' argument is a directory, but 'to' is not a directory" 5 6n0=`namegen` 7n1=`namegen` 8 9expect 0 mkdir ${n0} 0755 10 11expect 0 create ${n1} 0644 12expect ENOTDIR rename ${n0} ${n1} 13expect dir lstat ${n0} type 14expect regular lstat ${n1} type 15expect 0 unlink ${n1} 16 17expect 0 mkfifo ${n1} 0644 18expect ENOTDIR rename ${n0} ${n1} 19expect dir lstat ${n0} type 20expect fifo lstat ${n1} type 21expect 0 unlink ${n1} 22 23expect 0 symlink test ${n1} 24expect ENOTDIR rename ${n0} ${n1} 25expect dir lstat ${n0} type 26expect symlink lstat ${n1} type 27expect 0 unlink ${n1} 28 29expect 0 rmdir ${n0} 30