This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl -x doesn't recognize file as executable


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]