X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Thu, 22 May 2008 12:44:26 -0400 From: "Mark J. Reed" To: cygwin AT cygwin DOT com Subject: Re: setfacl on Cygwin Cc: "Corinna Vinschen" In-Reply-To: <200805221836.09485.bruno@clisp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 -- 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/