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