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

Function rsync_acl_get_perms

acls.c:129–134  ·  view source on GitHub ↗

Extracts and returns the permission bits from the ACL. This cannot be * called on an rsync_acl that has NO_ENTRY in any spot but the mask. */

Source from the content-addressed store, hash-verified

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. */
129static int rsync_acl_get_perms(const rsync_acl *racl)
130{
131 return (racl->user_obj << 6)
132 + ((racl->mask_obj != NO_ENTRY ? racl->mask_obj : racl->group_obj) << 3)
133 + racl->other_obj;
134}
135
136/* Removes the permission-bit entries from the ACL because these
137 * can be reconstructed from the file's mode. */

Callers 1

default_perms_for_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected