This is the mail archive of the
mailing list for the Cygwin project.
Re: setfacl on Cygwin
On Thu, May 22, 2008 at 12:36 PM, Bruno Haible <firstname.lastname@example.org> wrote:
> Corinna Vinschen wrote:
>> > What error code do you want? EINVAL?
> EINVAL sounds right, yes. The Solaris manual page  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 <email@example.com>
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html