4 desc="rename returns EISDIR when the 'to' argument is a directory, but 'from' is not a directory"
14 expect 0 mkdir ${n0} 0755
16 expect 0 create ${n1} 0644
17 expect EISDIR rename ${n1} ${n0}
18 expect dir lstat ${n0} type
19 expect regular lstat ${n1} type
22 expect 0 mkfifo ${n1} 0644
23 expect EISDIR rename ${n1} ${n0}
24 expect dir lstat ${n0} type
25 expect fifo lstat ${n1} type
28 expect 0 symlink test ${n1}
29 expect EISDIR rename ${n1} ${n0}
30 expect dir lstat ${n0} type
31 expect symlink lstat ${n1} type