exportfs: disallow ORCLOSE in readonly mode (charles forsyth)
This commit is contained in:
parent
b6005f3a45
commit
8c837c7bf6
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ slave(Fsrpc *f)
|
||||||
putsbuf(f);
|
putsbuf(f);
|
||||||
return;
|
return;
|
||||||
case Topen:
|
case Topen:
|
||||||
if((f->work.mode&3) == OWRITE || (f->work.mode&OTRUNC)){
|
if((f->work.mode&3) == OWRITE || (f->work.mode&(OTRUNC|ORCLOSE))){
|
||||||
reply(&f->work, &rhdr, Ereadonly);
|
reply(&f->work, &rhdr, Ereadonly);
|
||||||
putsbuf(f);
|
putsbuf(f);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue