This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: perl -x doesn't recognize file as executable
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 4 Jul 2005 09:28:31 +0200
- Subject: Re: perl -x doesn't recognize file as executable
- References: <42A32D8C.9080408@scytek.de> <42A35971.8C69A2C5@dessent.net> <42A39676.9030208@scytek.de> <42A3A773.3C6AFA4A@dessent.net> <42C68B1B.5010404@byu.net>
- Reply-to: cygwin at cygwin dot com
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@cygwin.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/