This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setfacl on Cygwin

On Thu, May 22, 2008 at 12:36 PM, Bruno Haible <> wrote:
> Corinna Vinschen wrote:
>> > What error code do you want?  EINVAL?
> EINVAL sounds right, yes. The Solaris manual page [1] also mentions it:
>    ... the cmd argument is SETACL or ACE_SETACL and the ACL specified in
>    aclbufp is not valid."

Right.  That's the thing - this is a different error condition, one
that could not possibly arise on Solaris (since there is only one
concept of user there).  The question is, what should the error code
be for this new condition that can only arise on Cygwin?  Since it's
an invalid user identity for the requested operation, EINVAL seems
appropriate; it's just not what the man page says EINVAL means in this

The only other standard error code that leaps out at me as possibly
appropriate is EPERM ("Operation not permitted").

Sadly, the "no such thing exists" errors are all quite specific as to
the thing in question: ENOENT for files, ESRCH for processes, ENXIO
for devices, etc.

Mark J. Reed <>

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]