Gerrit P. Haase wrote:
Krzysztof Duleba wrote:
Volker Quetschke wrote:
I stumbled over the following problem, perl's -x doesn't recognize
some files as executable, even though they are and test -x does.
It works for me if the file is group or world executable.
Works for me anyway, as long as I am probing a Cygwin executable:
After thinking about it, it depends on the owner of the file, it work as
long as I'm the owner.
$ id
uid=11002(gerrit) gid=10512(Domänen-Admins)
groups=0(root),10512(Domänen-Admins),10513(Domänen-Benutzer),11031(Mailer)
$ chown gerrit /c/Programme/Mozilla/mozilla.exe
$ perl -e 'if ( ! -x "/c/Programme/Mozilla/mozilla.exe" ) {print "not
executable\n";} else {print "executable\n";}'
executable
$ getfacl /c/Programme/Mozilla/mozilla.exe
# file: /c/Programme/Mozilla/mozilla.exe
# owner: gerrit
# group: Domänen-Benutzer
user::rwx
group::---
group:SYSTEM:rwx
mask:rwx
other:---
Gerrit
--
=^..^=
--
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/