ref: 8c837c7bf6e096b9d0c055b47df6f4f3be0c8375
parent: b6005f3a457ff1b40b5fd342c63e2685e5f49b1c
author: cinap_lenrek <[email protected]>
date: Mon May 16 17:49:02 EDT 2016
exportfs: disallow ORCLOSE in readonly mode (charles forsyth)
--- a/sys/src/cmd/exportfs/exportsrv.c
+++ b/sys/src/cmd/exportfs/exportsrv.c
@@ -477,7 +477,7 @@
putsbuf(f);
return;
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);
putsbuf(f);
return;