Lines Matching refs:g
214 GroupRecord *g, in nss_pack_group_record() argument
223 assert(g); in nss_pack_group_record()
226 assert(g->group_name); in nss_pack_group_record()
227 required = strlen(g->group_name) + 1; in nss_pack_group_record()
229 STRV_FOREACH(m, g->members) { in nss_pack_group_record()
235 if (strv_contains(g->members, *m)) in nss_pack_group_record()
251 STRV_FOREACH(m, g->members) { in nss_pack_group_record()
256 if (strv_contains(g->members, *m)) in nss_pack_group_record()
267 .gr_name = strcpy(p, g->group_name), in nss_pack_group_record()
268 .gr_gid = g->gid, in nss_pack_group_record()
283 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in userdb_getgrnam()
293 r = groupdb_by_name(name, nss_glue_userdb_flags()|USERDB_SUPPRESS_SHADOW, &g); in userdb_getgrnam()
305 if (!g) { in userdb_getgrnam()
324 r = nss_group_record_by_name(name, false, &g); in userdb_getgrnam()
333 r = nss_pack_group_record(g, members, gr, buffer, buflen); in userdb_getgrnam()
350 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in userdb_getgrgid()
361 r = groupdb_by_gid(gid, nss_glue_userdb_flags()|USERDB_SUPPRESS_SHADOW, &g); in userdb_getgrgid()
367 if (!g) { in userdb_getgrgid()
380 r = nss_group_record_by_gid(gid, false, &g); in userdb_getgrgid()
392 …r = membershipdb_by_group_strv(g->group_name, nss_glue_userdb_flags()|USERDB_SUPPRESS_SHADOW, &mem… in userdb_getgrgid()
403 r = nss_pack_group_record(g, members, gr, buffer, buflen); in userdb_getgrgid()