mirror of https://github.com/0intro/wmii
Allow opening files with OTRUNC set
This commit is contained in:
parent
f1c1f7fc44
commit
d4d4b77003
|
@ -785,7 +785,7 @@ fs_open(P9Req *r) {
|
|||
return respond(r, Enoperm);
|
||||
if((r->ifcall.mode&3) != P9OWRITE && !(f->tab.perm & 0400))
|
||||
return respond(r, Enoperm);
|
||||
if((r->ifcall.mode&~(3|P9OAPPEND)))
|
||||
if((r->ifcall.mode&~(3|P9OAPPEND|P9OTRUNC)))
|
||||
return respond(r, Enoperm);
|
||||
respond(r, nil);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue