Subject: bug#13702: 24.3.50; dired-do-rename: Mysterious error "(file-error Getting ACL no such file or directory <existing file>)"

From: Eli Zaretskii <[email-masked]>
Date: Wed, 13 Feb 2013 18:08:04 +0200

> From: Romain Francoise <[email-masked]>
> Date: Wed, 13 Feb 2013 10:39:20 +0100
> Cc: [email-masked]
> 
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -2090,7 +2090,7 @@ entries (depending on how Emacs was built).  */)
>  
>  #ifdef HAVE_POSIX_ACL
>        acl = acl_get_fd (ifd);
> -      if (acl == NULL && errno != ENOTSUP)
> +      if (acl == NULL && errno != ENOTSUP && errno != ENOENT)
>  	report_file_error ("Getting ACL", Fcons (file, Qnil));
>  #endif
>      }

Unless other platforms have the same issue, I'd suggest that the
comparison against ENOENT be conditioned on Darwin.