Fix exclusive-bit leakage.

This commit is contained in:
Pawel Jakub Dawidek 2004-07-18 06:54:29 +00:00
parent 67bcdcf062
commit be7695cf65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132342

View File

@ -186,7 +186,7 @@ g_concat_access(struct g_provider *pp, int dr, int dw, int de)
if (pp->acr == 0 && pp->acw == 0 && pp->ace == 0)
de++;
/* ... and let go of it on last close */
if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 1)
if ((pp->acr + dr) == 0 && (pp->acw + dw) == 0 && (pp->ace + de) == 0)
de--;
error = ENXIO;