Lines Matching defs:grp
18 #include <grp.h>
33 struct group *grp = getgrnam(group_name);
37 if (!grp) {
40 if (strcmp(group_name, grp->gr_name)) {
41 t_error("%s failed, grp->gr_name is %s\n", __func__, grp->gr_name);
43 if (grp->gr_gid != gid) {
44 t_error("%s failed, grp->gr_gid is %d\n", __func__, grp->gr_gid);
46 if (grp->gr_mem == NULL) {
47 t_error("%s failed, grp->gr_mem is NULL\n", __func__);