4 desc
="rename returns ENOTDIR if a component of either path prefix is not a directory"
15 expect
0 mkdir
${n0} 0755
16 expect
0 create
${n0}/${n1} 0644
17 expect ENOTDIR rename
${n0}/${n1}/test ${n0}/${n2}
18 expect
0 create
${n0}/${n2} 0644
19 expect ENOTDIR link
${n0}/${n2} ${n0}/${n1}/test
20 expect
0 unlink
${n0}/${n1}
21 expect
0 unlink
${n0}/${n2}