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

Function cache_rsync_acl

acls.c:794–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794static int cache_rsync_acl(rsync_acl *racl, SMB_ACL_TYPE_T type, item_list *racl_list)
795{
796 int ndx;
797
798 if (!racl)
799 ndx = -1;
800 else if ((ndx = find_matching_rsync_acl(racl, type, racl_list)) == -1) {
801 acl_duo *new_duo;
802 ndx = racl_list->count;
803 new_duo = EXPAND_ITEM_LIST(racl_list, acl_duo, 1000);
804 new_duo->racl = *racl;
805 new_duo->sacl = NULL;
806 *racl = empty_rsync_acl;
807 }
808
809 return ndx;
810}
811
812/* Turn the ACL data in stat_x into cached ACL data, setting the index
813 * values in the file struct. */

Callers 1

cache_tmp_aclFunction · 0.85

Calls 1

find_matching_rsync_aclFunction · 0.85

Tested by

no test coverage detected