MCPcopy Index your code
hub / github.com/RsyncProject/rsync / add_gid

Function add_gid

uidlist.c:357–371  ·  view source on GitHub ↗

Add a gid to the list of gids. Only called on sending side. */

Source from the content-addressed store, hash-verified

355
356/* Add a gid to the list of gids. Only called on sending side. */
357const char *add_gid(gid_t gid)
358{
359 struct idlist *list;
360 struct idlist *node;
361 union name_or_id noiu;
362
363 for (list = gidlist; list; list = list->next) {
364 if (id_eq_gid(list->id, gid))
365 return NULL;
366 }
367
368 noiu.name = gid_to_group(gid);
369 node = add_to_list(&gidlist, gid, noiu, 0, 0);
370 return node->u.name;
371}
372
373static void send_one_name(int f, id_t id, const char *name)
374{

Callers 2

send_ida_entriesFunction · 0.85
send_file_entryFunction · 0.85

Calls 3

id_eq_gidFunction · 0.85
gid_to_groupFunction · 0.85
add_to_listFunction · 0.85

Tested by

no test coverage detected