4 desc
="link returns EACCES when a component of either path prefix denies search permission"
17 expect
0 mkdir
${n0} 0755
21 expect
0 mkdir
${n1} 0755
22 expect
0 chown
${n1} 65534 65534
23 expect
0 mkdir
${n2} 0755
24 expect
0 chown
${n2} 65534 65534
25 expect
0 -u 65534 -g 65534 create
${n1}/${n3} 0644
27 expect
0 -u 65534 -g 65534 link
${n1}/${n3} ${n2}/${n4}
28 expect
0 -u 65534 -g 65534 unlink
${n2}/${n4}
30 expect
0 chmod ${n1} 0644
31 expect EACCES
-u 65534 -g 65534 link
${n1}/${n3} ${n1}/${n4}
32 expect EACCES
-u 65534 -g 65534 link
${n1}/${n3} ${n2}/${n4}
34 expect
0 chmod ${n1} 0755
35 expect
0 chmod ${n2} 0644
36 expect EACCES
-u 65534 -g 65534 link
${n1}/${n3} ${n2}/${n4}
38 expect
0 unlink
${n1}/${n3}