| delorie.com/archives/browse.cgi | search |
| 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 |
| Message-ID: | <42A356C7.3040108@familiehaase.de> |
| Date: | Sun, 05 Jun 2005 21:47:19 +0200 |
| From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: perl -x doesn't recognize file as executable |
| References: | <42A32D8C DOT 9080408 AT scytek DOT de> <d7vbdm$va8$1 AT sea DOT gmane DOT org> <42A3535B DOT 8050103 AT familiehaase DOT de> |
| In-Reply-To: | <42A3535B.8050103@familiehaase.de> |
| X-IsSubscribed: | yes |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j55JlRB9000816 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |