Subject: bug#17810: 24.3.91; file-acl does not return ACL on Mac OS X

From: Paul Eggert <[email-masked]>
Date: Thu, 19 Jun 2014 23:35:52 -0700

Thanks for the bug report.  Does the attached patch fix things for you? 
  I can't easily test it myself, as I don't use OS X.
=== modified file 'src/fileio.c'
--- src/fileio.c	2014-06-08 00:59:05 +0000
+++ src/fileio.c	2014-06-20 06:30:09 +0000
@@ -3013,6 +3013,9 @@
   acl_t acl;
   Lisp_Object acl_string;
   char *str;
+# ifndef HAVE_ACL_TYPE_EXTENDED
+  acl_type_t ACL_TYPE_EXTENDED = ACL_TYPE_ACCESS;
+# endif
 #endif
 
   absname = expand_and_dir_to_file (filename,
@@ -3027,7 +3030,7 @@
 #ifdef HAVE_ACL_SET_FILE
   absname = ENCODE_FILE (absname);
 
-  acl = acl_get_file (SSDATA (absname), ACL_TYPE_ACCESS);
+  acl = acl_get_file (SSDATA (absname), ACL_TYPE_EXTENDED);
   if (acl == NULL)
     return Qnil;