ref: c5b0edecc9106d44e971a3f6d0300736f21fbc12
parent: b554ad054bee15040c59faa65c134a876cee654e
author: cinap_lenrek <[email protected]>
date: Sun Jun 7 13:41:43 EDT 2015
devfs: remove useless ~OTRUNC mask for openmode
--- a/sys/src/9/port/devfs.c
+++ b/sys/src/9/port/devfs.c
@@ -953,7 +953,7 @@
* but only for its children. Don't use devopen here.
*/
c->offset = 0;
- c->mode = openmode(omode & ~OTRUNC);
+ c->mode = openmode(omode);
c->flag |= COPEN;
return c;
}