commit d4d4b770033ddb7c0a45f4f39088fe1725b248b5
parent f1c1f7fc4402bdd0ba85e39d1a68657063120d1b
Author: Kris Maglione <bsdaemon@wmii.de>
Date: Mon, 26 Jun 2006 18:37:33 -0400
Allow opening files with OTRUNC set
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c
@@ -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);
}