diff --git a/sys/src/cmd/exportfs/exportsrv.c b/sys/src/cmd/exportfs/exportsrv.c index 67b643253..6980648e3 100644 --- a/sys/src/cmd/exportfs/exportsrv.c +++ b/sys/src/cmd/exportfs/exportsrv.c @@ -477,7 +477,7 @@ slave(Fsrpc *f) 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;