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

Function recv_user_name

uidlist.c:416–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416uid_t recv_user_name(int f, uid_t uid)
417{
418 struct idlist *node;
419 int len = read_byte(f);
420 char *name;
421
422 if (len) {
423 name = new_array(char, len+1);
424 read_sbuf(f, name, len);
425 if (numeric_ids < 0) {
426 free(name);
427 name = NULL;
428 }
429 } else
430 name = NULL;
431
432 node = recv_add_id(&uidlist, uidmap, uid, name); /* node keeps name's memory */
433 return node->id2;
434}
435
436gid_t recv_group_name(int f, gid_t gid, uint16 *flags_ptr)
437{

Callers 3

recv_id_listFunction · 0.85
recv_ida_entriesFunction · 0.85
recv_file_entryFunction · 0.85

Calls 3

read_byteFunction · 0.85
read_sbufFunction · 0.85
recv_add_idFunction · 0.85

Tested by

no test coverage detected