gid_from_group
if (gid_from_group(hd->gname, &(arcn->sb.st_gid)) < 0)
int gid_from_group(const char *, gid_t *);
int gid_from_group(const char *, gid_t *);
if (gid_from_group(group, &gid) == -1) {
if (gid_from_group(val, &gid) == -1)