4 desc
="chmod returns EPERM if the named file has its immutable or append-only flag set"
15 expect
0 create
${n0} 0644
16 expect
0 chflags
${n0} SF_IMMUTABLE
17 expect EPERM
chmod ${n0} 0600
18 expect
0644 stat
${n0} mode
19 expect
0 chflags
${n0} none
20 expect
0 chmod ${n0} 0600
23 expect
0 create
${n0} 0644
24 expect
0 chflags
${n0} UF_IMMUTABLE
25 expect EPERM
chmod ${n0} 0600
26 expect
0644 stat
${n0} mode
27 expect
0 chflags
${n0} none
28 expect
0 chmod ${n0} 0600
31 expect
0 create
${n0} 0644
32 expect
0 chflags
${n0} SF_APPEND
33 expect EPERM
chmod ${n0} 0600
34 expect
0644 stat
${n0} mode
35 expect
0 chflags
${n0} none
36 expect
0 chmod ${n0} 0600
39 expect
0 create
${n0} 0644
40 expect
0 chflags
${n0} UF_APPEND
41 expect EPERM
chmod ${n0} 0600
42 expect
0644 stat
${n0} mode
43 expect
0 chflags
${n0} none
44 expect
0 chmod ${n0} 0600
47 expect
0 create
${n0} 0644
48 expect
0 chflags
${n0} SF_NOUNLINK
49 expect
0 chmod ${n0} 0600
50 expect
0600 stat
${n0} mode
51 expect
0 chflags
${n0} none
54 expect
0 create
${n0} 0644
55 expect
0 chflags
${n0} UF_NOUNLINK
56 expect
0 chmod ${n0} 0600
57 expect
0600 stat
${n0} mode
58 expect
0 chflags
${n0} none