emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17810: closed (24.3.91; file-acl does not return A


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17810: closed (24.3.91; file-acl does not return ACL on Mac OS X)
Date: Sat, 21 Jun 2014 07:05:03 +0000

Your message dated Sat, 21 Jun 2014 00:04:30 -0700
with message-id <address@hidden>
and subject line Re: 24.3.91; file-acl does not return ACL on Mac OS X
has caused the debbugs.gnu.org bug report #17810,
regarding 24.3.91; file-acl does not return ACL on Mac OS X
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17810: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17810
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.91; file-acl does not return ACL on Mac OS X Date: Thu, 19 Jun 2014 19:39:14 +0900 User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)
On Mac OS X >= 10.5, the directory ~/Desktop has ACL, but (file-acl
"~/Desktop") returns nil.

  $ ls -lde ~/Desktop
  drwx------+ 4 mituharu  staff  136  6 11 12:04 /Users/mituharu/Desktop
   0: group:everyone deny delete

A comment in lib/qcopy-acl.c and lib/qset-acl.c says:

  # if !HAVE_ACL_TYPE_EXTENDED
    /* Linux, FreeBSD, IRIX, Tru64 */
...
  # else /* HAVE_ACL_TYPE_EXTENDED */
    /* Mac OS X */

    /* On Mac OS X,  acl_get_file (name, ACL_TYPE_ACCESS)
       and           acl_get_file (name, ACL_TYPE_DEFAULT)
       always return NULL / EINVAL.  You have to use
                     acl_get_file (name, ACL_TYPE_EXTENDED)
       or            acl_get_fd (open (name, ...))
       to retrieve an ACL.
       On the other hand,
                     acl_set_file (name, ACL_TYPE_ACCESS, acl)
       and           acl_set_file (name, ACL_TYPE_DEFAULT, acl)
       have the same effect as
                     acl_set_file (name, ACL_TYPE_EXTENDED, acl):
       Each of these calls sets the file's ACL.  */

So, the following lines in src/fileio.c seems to always result in
returning Qnil.

  acl = acl_get_file (SSDATA (absname), ACL_TYPE_ACCESS);
  if (acl == NULL)
    return Qnil;

If I change the above ACL_TYPE_ACCESS to ACL_TYPE_EXTENDED as an
experiment, then I get the following string as a result of (file-acl
"~/Desktop"):

  "!#acl 1
  group:ABCDEFAB-CDEF-ABCD-EFAB-CDEF0000000C:everyone:12:deny:delete
  "

And I could pass it to set-file-acl to set ACL of another file.

                                     YAMAMOTO Mitsuharu
                                address@hidden




--- End Message ---
--- Begin Message --- Subject: Re: 24.3.91; file-acl does not return ACL on Mac OS X Date: Sat, 21 Jun 2014 00:04:30 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 OK, I installed that patch as emacs-24 bzr 117271 and am marking this as done.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]