X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 22 May 2008 14:34:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Cc: Bruno Haible Subject: Re: setfacl on Cygwin Message-ID: <20080522123440.GF731@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, Bruno Haible References: <200805220105 DOT 21773 DOT bruno AT clisp DOT org> <48355D5B DOT 3030101 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48355D5B.3030101@byu.net> User-Agent: Mutt/1.5.16 (2007-06-09) 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 May 22 05:47, Eric Blake wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > According to Bruno Haible on 5/21/2008 5:05 PM: > | Hi Eric, > | > | I'm looking at ACL support for gnulib. Can you reproduce this with a > | recent Cygwin? With a two-year-old Cygwin I got this: > > I reproduced the same symptoms with cygwin 1.5.25-11. > > | > | $ touch foo > | > | $ getfacl foo > | # file: foo > | # owner: haible > | # group: None > | user::rw- > | group::r-- > | mask:rwx > | other:r-- > | > | $ setfacl -m user:4:--x foo > | setfacl: No error > | > | $ echo $? > | 0 > | > | $ getfacl foo > | # file: foo > | # owner: haible > | # group: None > | user::rw- > | group::r-- > | mask:rwx > | other:r-- > | > | The setfacl program > | 1. complained about "No error", > | 2. exited with exit code 0 although it did not execute the requested > change. The problem is that the request can't be executed because we have no mapping from uid 4 to a Windows SID. OTOH, the underlying Solaris function acl() does not define any error code for a non-existant user because it's not an error on Solaris. What error code do you want? EINVAL? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/