char * fileStatesList;
char * filespec;
char * name;
+ gid_t gid;
int type, count, rc;
struct stat sb;
unsigned char md5sum[40];
if (flags & RPMVERIFY_GROUP) {
if (headerGetEntry(h, RPMTAG_FILEGROUPNAME, NULL, (void **) &gnameList,
NULL)) {
- name = gidToGname(sb.st_gid);
- if (!name || strcmp(gnameList[filenum], name))
+ rc = gnameToGid(gnameList[filenum],&gid);
+ if (rc || (gid != sb.st_gid))
*result |= RPMVERIFY_GROUP;
free(gnameList);
} else if (headerGetEntry(h, RPMTAG_FILEGIDS, NULL, (void **) &gidList,