-/* Transfer the count id_access items out of the temp_ida_list into either
- * the users or groups ida_entries list in racl. */
-static void save_idas(rsync_acl *racl, SMB_ACL_TAG_T type, item_list *temp_ida_list)
-{
- id_access *idas;
- ida_entries *ent;
-
- if (temp_ida_list->count) {
- int cnt = temp_ida_list->count;
- id_access *temp_idas = temp_ida_list->items;
- if (!(idas = new_array(id_access, cnt)))
- out_of_memory("save_idas");
- memcpy(idas, temp_idas, cnt * sizeof *temp_idas);
- } else
- idas = NULL;
-
- ent = type == SMB_ACL_USER ? &racl->users : &racl->groups;
-
- if (ent->count) {
- rprintf(FERROR, "save_idas: disjoint list found for type %d\n", type);
- exit_cleanup(RERR_UNSUPPORTED);
- }
- ent->count = temp_ida_list->count;
- ent->idas = idas;
-
- /* Truncate the temporary list now that its idas have been saved. */
- temp_ida_list->count = 0;
-}
-