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

Function calc_sacl_entries

acls.c:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static 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. */

Callers 1

pack_smb_aclFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected