MCPcopy Create free account
hub / github.com/RsyncProject/rsync / match_racl_ids

Function match_racl_ids

acls.c:1061–1075  ·  view source on GitHub ↗

Non-incremental recursion needs to convert all the received IDs. * This is done in a single pass after receiving the whole file-list. */

Source from the content-addressed store, hash-verified

1059/* Non-incremental recursion needs to convert all the received IDs.
1060 * This is done in a single pass after receiving the whole file-list. */
1061static void match_racl_ids(const item_list *racl_list)
1062{
1063 int list_cnt, name_cnt;
1064 acl_duo *duo_item = racl_list->items;
1065 for (list_cnt = racl_list->count; list_cnt--; duo_item++) {
1066 ida_entries *idal = &duo_item->racl.names;
1067 id_access *ida = idal->idas;
1068 for (name_cnt = idal->count; name_cnt--; ida++) {
1069 if (ida->access & NAME_IS_USER)
1070 ida->id = match_uid(ida->id);
1071 else
1072 ida->id = match_gid(ida->id, NULL);
1073 }
1074 }
1075}
1076
1077void match_acl_ids(void)
1078{

Callers 1

match_acl_idsFunction · 0.85

Calls 2

match_uidFunction · 0.85
match_gidFunction · 0.85

Tested by

no test coverage detected