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:
cinap_lenrek 2013-05-30 01:58:09 +02:00
parent 5ba51bcd0d
commit 9abafe226e

View file

@ -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: