4 desc
="chmod returns EFTYPE if the effective user ID is not the super-user, the mode includes the sticky bit (S_ISVTX), and path does not refer to a directory"
14 expect
0 mkdir
${n0} 0755
18 expect
0 mkdir
${n1} 0755
19 expect
0 chmod ${n1} 01755
20 expect
01755 stat
${n1} mode
23 expect
0 create
${n1} 0644
24 expect
0 chmod ${n1} 01644
25 expect
01644 stat
${n1} mode
28 expect
0 mkdir
${n1} 0755
29 expect
0 chown
${n1} 65534 65534
30 expect
0 -u 65534 -g 65534 chmod ${n1} 01755
31 expect
01755 stat
${n1} mode
34 expect
0 create
${n1} 0644
35 expect
0 chown
${n1} 65534 65534
38 expect EFTYPE
-u 65534 -g 65534 chmod ${n1} 01644
39 expect
0644 stat
${n1} mode
42 expect
0 -u 65534 -g 65534 chmod ${n1} 01644
43 expect
0644 stat
${n1} mode
46 expect
0 -u 65534 -g 65534 chmod ${n1} 01644
47 expect
01644 stat
${n1} mode