View | Details | Raw Unified | Return to bug 165527
Collapse All | Expand All

(-)getgrent.c (+2 lines)
Lines 811-816 files_setgrent(void *retval, void *mdata Link Here
811
			rewind(st->fp);
811
			rewind(st->fp);
812
		else if (stayopen)
812
		else if (stayopen)
813
			st->fp = fopen(_PATH_GROUP, "r");
813
			st->fp = fopen(_PATH_GROUP, "r");
814
		st->stayopen = stayopen;
814
		break;
815
		break;
815
	case ENDGRENT:
816
	case ENDGRENT:
816
		if (st->fp != NULL) {
817
		if (st->fp != NULL) {
Lines 1252-1257 compat_setgrent(void *retval, void *mdat Link Here
1252
			rewind(st->fp);
1253
			rewind(st->fp);
1253
		else if (stayopen)
1254
		else if (stayopen)
1254
			st->fp = fopen(_PATH_GROUP, "r");
1255
			st->fp = fopen(_PATH_GROUP, "r");
1256
		st->stayopen = stayopen;
1255
		set_setent(dtab, mdata);
1257
		set_setent(dtab, mdata);
1256
		(void)_nsdispatch(NULL, dtab, NSDB_GROUP_COMPAT, "setgrent",
1258
		(void)_nsdispatch(NULL, dtab, NSDB_GROUP_COMPAT, "setgrent",
1257
		    compatsrc, 0);
1259
		    compatsrc, 0);

Return to bug 165527