rem: rprintf(FINFO, "process has gid %ld\n", (long)mygid);
add: rprintf(FINFO, "process has gid %d\n", (int)mygid);
context: static int is_in_group(gid_t gid){#ifdef HAVE_GETGROUPS	static gid_t last_in = GID_NONE, last_out;	static int ngroups = -2;	static GETGROUPS_T *gidset;	int n;	if (gid == last_in)		return last_out;	if (ngroups < -1) {		gid_t mygid = MY_GID();		if ((ngroups = getgroups(0, 0)) < 0)			ngroups = 0;		gidset = new_array(GETGROUPS_T, ngroups+1);		if (ngroups > 0)			ngroups = getgroups(ngroups, gidset);		/* The default gid might not be in the list on some systems. */		for (n = 0; n < ngroups; n++) {			if (gidset[n] == mygid)				break;		}		if (n == ngroups)			gidset[ngroups++] = mygid;		if (verbose > 3) {			char gidbuf[NGROUPS_MAX*16+32];			int pos;			sprintf(gidbuf, "process has %d gid%s: ",			    ngroups, ngroups == 1? "" : "s");			pos = strlen(gidbuf);			for (n = 0; n < ngroups; n++) {				sprintf(gidbuf+pos, " %ld", (long)gidset[n]);				pos += strlen(gidbuf+pos);			}			rprintf(FINFO, "%s\n", gidbuf);		}	}	last_in = gid;	for (n = 0; n < ngroups; n++) {		if (gidset[n] == gid)			return last_out = 1;	}	return last_out = 0;#else	static gid_t mygid = GID_NONE;	if (mygid == GID_NONE) {		mygid = MY_GID();		if (verbose > 3)			rprintf(FINFO, "process has gid %ld\n", (long)mygid);	}	return gid == mygid;#endif}