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

Function add_uid

uidlist.c:340–354  ·  view source on GitHub ↗

Add a uid to the list of uids. Only called on sending side. */

Source from the content-addressed store, hash-verified

338
339/* Add a uid to the list of uids. Only called on sending side. */
340const char *add_uid(uid_t uid)
341{
342 struct idlist *list;
343 struct idlist *node;
344 union name_or_id noiu;
345
346 for (list = uidlist; list; list = list->next) {
347 if (id_eq_uid(list->id, uid))
348 return NULL;
349 }
350
351 noiu.name = uid_to_user(uid);
352 node = add_to_list(&uidlist, uid, noiu, 0, 0);
353 return node->u.name;
354}
355
356/* Add a gid to the list of gids. Only called on sending side. */
357const char *add_gid(gid_t gid)

Callers 2

send_ida_entriesFunction · 0.85
send_file_entryFunction · 0.85

Calls 3

id_eq_uidFunction · 0.85
uid_to_userFunction · 0.85
add_to_listFunction · 0.85

Tested by

no test coverage detected