4 desc
="unlink returns EPERM if the named file has its immutable, undeletable or append-only flag set"
15 expect
0 create
${n0} 0644
16 expect
0 chflags
${n0} SF_IMMUTABLE
17 expect EPERM unlink
${n0}
18 expect
0 chflags
${n0} none
21 expect
0 create
${n0} 0644
22 expect
0 chflags
${n0} UF_IMMUTABLE
23 expect EPERM unlink
${n0}
24 expect
0 chflags
${n0} none
27 expect
0 create
${n0} 0644
28 expect
0 chflags
${n0} SF_NOUNLINK
29 expect EPERM unlink
${n0}
30 expect
0 chflags
${n0} none
33 expect
0 create
${n0} 0644
34 expect
0 chflags
${n0} UF_NOUNLINK
35 expect EPERM unlink
${n0}
36 expect
0 chflags
${n0} none
39 expect
0 create
${n0} 0644
40 expect
0 chflags
${n0} SF_APPEND
41 expect EPERM unlink
${n0}
42 expect
0 chflags
${n0} none
45 expect
0 create
${n0} 0644
46 expect
0 chflags
${n0} UF_APPEND
47 expect EPERM unlink
${n0}
48 expect
0 chflags
${n0} none