exportfs: disallow ORCLOSE in readonly mode (charles forsyth)

This commit is contained in:
cinap_lenrek 2016-05-16 21:49:02 +02:00
parent b6005f3a45
commit 8c837c7bf6

View file

@ -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;