| 792 | } |
| 793 | |
| 794 | static 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. */ |
no test coverage detected