| 113 | } |
| 114 | |
| 115 | static int calc_sacl_entries(const rsync_acl *racl) |
| 116 | { |
| 117 | /* A System ACL always gets user/group/other permission entries. */ |
| 118 | return racl->names.count |
| 119 | #ifdef ACLS_NEED_MASK |
| 120 | + 1 |
| 121 | #else |
| 122 | + (racl->mask_obj != NO_ENTRY) |
| 123 | #endif |
| 124 | + 3; |
| 125 | } |
| 126 | |
| 127 | /* Extracts and returns the permission bits from the ACL. This cannot be |
| 128 | * called on an rsync_acl that has NO_ENTRY in any spot but the mask. */ |