hjfs: deal with ORCLOSE in chancreat()
ORCLOSE was effectively ignored for Tcreate. just setting CHRCLOSE flag on chan should fix it.
This commit is contained in:
parent
5ba51bcd0d
commit
9abafe226e
1 changed files with 2 additions and 0 deletions
|
@ -186,6 +186,8 @@ chancreat(Chan *ch, char *name, int perm, int mode)
|
|||
ch->open |= CHREAD;
|
||||
break;
|
||||
}
|
||||
if((mode & ORCLOSE) != 0)
|
||||
ch->open |= CHRCLOSE;
|
||||
chend(ch);
|
||||
return 1;
|
||||
inval:
|
||||
|
|
Loading…
Reference in a new issue