4 desc
="chmod returns ENAMETOOLONG if an entire path name exceeded 1023 characters"
11 expect
0 mkdir
${name255} 0755
12 expect
0 mkdir
${name255}/${name255} 0755
13 expect
0 mkdir
${name255}/${name255}/${name255} 0755
14 expect
0 mkdir
${path1021} 0755
15 expect
0 create
${path1023} 0644
16 expect
0 chmod ${path1023} 0642
17 expect
0 unlink
${path1023}
18 expect ENAMETOOLONG
chmod ${path1024} 0642
19 expect
0 rmdir ${path1021}
20 expect
0 rmdir ${name255}/${name255}/${name255}
21 expect
0 rmdir ${name255}/${name255}
22 expect
0 rmdir ${name255}