if (!ok) {
return -1;
}
- } else if (errno == ENOTSUP || errno == ENOSYS) {
+ } else if (no_acl_syscall_error(errno)) {
/* ACLs are not supported, so pretend we have a basic ACL. */
if (type == SMB_ACL_TYPE_ACCESS)
rsync_acl_fake_perms(racl, mode);
if (sacl == NULL) {
/* Couldn't get an ACL. Darn. */
switch (errno) {
+#ifdef ENOTSUP
case ENOTSUP:
+#endif
case ENOSYS:
/* No ACLs are available. */
break;
int sys_acl_free_text(char *text);
int sys_acl_free_acl(SMB_ACL_T the_acl);
int sys_acl_free_qualifier(void *qual, SMB_ACL_TAG_T tagtype);
+int no_acl_syscall_error(int err);
#endif /* SUPPORT_ACLS */