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
|
@ -186,6 +186,8 @@ chancreat(Chan *ch, char *name, int perm, int mode)
|
||||||
ch->open |= CHREAD;
|
ch->open |= CHREAD;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if((mode & ORCLOSE) != 0)
|
||||||
|
ch->open |= CHRCLOSE;
|
||||||
chend(ch);
|
chend(ch);
|
||||||
return 1;
|
return 1;
|
||||||
inval:
|
inval:
|
||||||
|
|
Loading…
Reference in a new issue