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

Function no_acl_syscall_error

lib/sysacls.c:2778–2800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2776************************************************************************/
2777
2778int no_acl_syscall_error(int err)
2779{
2780#ifdef HAVE_OSX_ACLS
2781 if (err == ENOENT)
2782 return 1; /* Weird problem with directory ACLs. */
2783#endif
2784#if defined(ENOSYS)
2785 if (err == ENOSYS) {
2786 return 1;
2787 }
2788#endif
2789#if defined(ENOTSUP)
2790 if (err == ENOTSUP) {
2791 return 1;
2792 }
2793#endif
2794 if (err == EINVAL) {
2795 /* If the type of SMB_ACL_TYPE_ACCESS or SMB_ACL_TYPE_DEFAULT
2796 * isn't valid, then the ACLs must be non-POSIX. */
2797 return 1;
2798 }
2799 return 0;
2800}
2801
2802#endif /* SUPPORT_ACLS */

Callers 1

get_rsync_aclFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected