all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Eric Blake <eblake@redhat.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Gnulib ACL wrappers
Date: Thu, 28 Aug 2014 15:37:01 -0400	[thread overview]
Message-ID: <53FF84DD.7070503@cornell.edu> (raw)
In-Reply-To: <53FF75DD.30105@cs.ucla.edu>

On 8/28/2014 2:33 PM, Paul Eggert wrote:
> Ken Brown wrote:
>> Or am I misunderstanding something?
>
> Sorry, I don't know; again, I don't use Cygwin and so can be only of
> limited help debugging it.  For what it's worth, on Solaris 11 an Emacs
> trunk configure says this:
>
> checking sys/acl.h usability... yes
> checking sys/acl.h presence... yes
> checking for sys/acl.h... yes
> checking for library containing acl_get_file... no
> checking for facl... yes
> checking for library containing acl_trivial... -lsec
> checking for acl_trivial... yes
>
> and 'truss' says that (copy-file "/etc/passwd" "~/passwd" nil nil nil t)
> executed the following system calls:
>
> facl(9, ACE_GETACLCNT, 0, 0x00000000)           = 3
> facl(9, ACE_GETACL, 3, 0x087BA410)              = 3
> facl(9, GETACLCNT, 0, 0x00000000)               Err#89 ENOSYS
> facl(10, ACE_SETACL, 3, 0x087BA410)             = 0
> fchmod(10, 0644)                                = 0
>
> which seems to indicate that the ACL stuff is working on Solaris, at
> least to some extent.  Perhaps you can look at the corresponding output
> on Cygwin and see where things are going wrong there.

I'm seeing something similar on Cygwin (except that Cygwin doesn't have 
acl_trivial), so I guess this is working as designed.  I was thrown off 
by the fact that so much of the ACL code in fileio.c is conditioned on 
HAVE_ACL_SET_FILE.  So I guess the functions that require this won't 
work on Solaris either.

Sorry for the noise, and thanks for your help.

Ken



      reply	other threads:[~2014-08-28 19:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27 17:15 Gnulib ACL wrappers Ken Brown
2014-08-27 17:32 ` Paul Eggert
2014-08-28 17:51   ` Ken Brown
2014-08-28 18:33     ` Paul Eggert
2014-08-28 19:37       ` Ken Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53FF84DD.7070503@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=eblake@redhat.com \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.