delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <f60fe000805220944v6f00c836oc11e6173755916df@mail.gmail.com> |
Date: | Thu, 22 May 2008 12:44:26 -0400 |
From: | "Mark J. Reed" <markjreed AT mail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: setfacl on Cygwin |
Cc: | "Corinna Vinschen" <corinna-cygwin AT cygwin DOT com> |
In-Reply-To: | <200805221836.09485.bruno@clisp.org> |
MIME-Version: | 1.0 |
References: | <200805220105 DOT 21773 DOT bruno AT clisp DOT org> <20080522123440 DOT GF731 AT calimero DOT vinschen DOT de> <20080522124427 DOT GG731 AT calimero DOT vinschen DOT de> <200805221836 DOT 09485 DOT bruno AT clisp DOT org> |
X-Google-Sender-Auth: | 6d63039a5e59192f |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Thu, May 22, 2008 at 12:36 PM, Bruno Haible <bruno AT clisp DOT org> wrote: > Corinna Vinschen wrote: >> > What error code do you want? EINVAL? > > EINVAL sounds right, yes. The Solaris manual page [1] also mentions it: > > "EINVAL > ... 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 context. 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 <markjreed AT gmail DOT com> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |