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. */
| 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. */ |
| 129 | static 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. */ |
no outgoing calls
no test coverage detected