delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/04/03:28:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 4 Jul 2005 09:28:31 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: perl -x doesn't recognize file as executable
Message-ID: <20050704072830.GR21074@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <42A32D8C DOT 9080408 AT scytek DOT de> <42A35971 DOT 8C69A2C5 AT dessent DOT net> <42A39676 DOT 9030208 AT scytek DOT de> <42A3A773 DOT 3C6AFA4A AT dessent DOT net> <42C68B1B DOT 5010404 AT byu DOT net>
Mime-Version: 1.0
In-Reply-To: <42C68B1B.5010404@byu.net>
User-Agent: Mutt/1.4.2i

On Jul  2 06:39, Eric Blake wrote:
> There are two 'test's - the bash builtin, and /bin/test from coreutils.
> /bin/test uses access()/eaccess()
> (/usr/src/coreutils-5.3.0/src/test.c:552,
> /usr/src/coreutils-5.3.0/lib/euidaccess.c) to determine if a file is
> executable, which should leave it entirely in cygwin1.dll's hands (and
> rely on cygwin's handling of spelling, ACLs, and ownerships).  bash uses
> its own home-baked method (/usr/src/bash-3.0/test.c:223,609) using stat()
> as its base, so it appears to ignore ACLs.  Please let me know if either
> test or /bin/test gets a wrong answer in the presence of ACLs, in which
> case I can report the bug upstream.

It's advisable to use access() on Cygwin instead of stat() with cream.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019