4 desc
="chmod returns EROFS if the named file resides on a read-only file system"
16 expect
0 mkdir
${n0} 0755
17 n
=`mdconfig -a -n -t malloc -s 1m`
18 newfs
/dev
/md
${n} >/dev
/null
19 mount
/dev
/md
${n} ${n0}
20 expect
0 create
${n0}/${n1} 0644
21 expect
0 chmod ${n0}/${n1} 0640
22 expect
0640 stat
${n0}/${n1} mode
24 expect EROFS
chmod ${n0}/${n1} 0600
25 expect
0640 stat
${n0}/${n1} mode
27 expect
0 chmod ${n0}/${n1} 0600
28 expect
0600 stat
${n0}/${n1} mode
29 expect
0 unlink
${n0}/${n1}