devfs: remove useless ~OTRUNC mask for openmode

This commit is contained in:
cinap_lenrek 2015-06-07 17:41:43 +02:00
parent b554ad054b
commit c5b0edecc9

View file

@ -953,7 +953,7 @@ mopen(Chan *c, int omode)
* 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;
}