devfs: remove useless ~OTRUNC mask for openmode
This commit is contained in:
parent
b554ad054b
commit
c5b0edecc9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue