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);
* This also frees the ACL data. */
void send_acl(statx *sxp, int f)
{
-
if (!sxp->acc_acl) {
sxp->acc_acl = create_racl();
rsync_acl_fake_perms(sxp->acc_acl, sxp->st.st_mode);
if (ndx < 0 || (size_t)ndx > racl_list->count) {
rprintf(FERROR, "recv_acl_index: %s ACL index %d > %d\n",
- str_acl_type(type), ndx, racl_list->count);
+ str_acl_type(type), ndx, (int)racl_list->count);
exit_cleanup(RERR_STREAMIO);
}
if (sacl == NULL) {
/* Couldn't get an ACL. Darn. */
switch (errno) {
+#ifdef ENOTSUP
case ENOTSUP:
+#endif
case ENOSYS:
/* No ACLs are available. */
break;