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

Function rsync_acl_fake_perms

acls.c:158–163  ·  view source on GitHub ↗

Given an empty rsync_acl, fake up the permission bits. */

Source from the content-addressed store, hash-verified

156
157/* Given an empty rsync_acl, fake up the permission bits. */
158static void rsync_acl_fake_perms(rsync_acl *racl, mode_t mode)
159{
160 racl->user_obj = (mode >> 6) & 7;
161 racl->group_obj = (mode >> 3) & 7;
162 racl->other_obj = mode & 7;
163}
164
165/* === Rsync ACL functions === */
166

Callers 2

get_rsync_aclFunction · 0.85
send_aclFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected