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: | <42A43ABB.5070505@familiehaase.de> |
Date: | Mon, 06 Jun 2005 13:59:55 +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> <42A35971 DOT 8C69A2C5 AT dessent DOT net> <42A39676 DOT 9030208 AT scytek DOT de> <42A3A773 DOT 3C6AFA4A AT dessent DOT net> <20050606024911 DOT GA1528 AT efn DOT org> |
In-Reply-To: | <20050606024911.GA1528@efn.org> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j56C8UgJ024112 |
Yitzchak Scott-Thoennes wrote: > On Sun, Jun 05, 2005 at 06:31:31PM -0700, Brian Dessent wrote: > >>Volker Quetschke wrote: >> >> >>>You mean special logic for windows file permissions (ACL?), not only >>>using the owner/group/other scheme? >> >>I think that it recognises files ending in ".exe" and special-cases >>them. >> >> >>>$ getfacl /cygdrive/c/Programme/NSIS/NSIS.exe >>># file: /cygdrive/c/Programme/NSIS/NSIS.exe >>># owner: Administratoren >>># group: none >>>user::rwx >>>group::--- >>>group:SYSTEM:rwx >>>group:Benutzer:r-x >>> ^ >>>with ------------| >>> >>>So it is executable. But ugo rights do not show this >> >>You're right. But as far as I know most unix utilities don't know about >>ACLs and only recognise standard 777 type permissions. > > > perl only checks ACLs if you ask it to. What does: > > $ perl -e 'use filetest "access"; if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not executable";}' > not executable > > show? Yep, this is ok, even if I'm not the owner. gerrit AT ismene /p/mirrors.rcn.net/pub/sourceware/cygwin/release/gcc/gcc-gdc $ getfacl /c/Programme/Mozilla/mozilla.exe # file: /c/Programme/Mozilla/mozilla.exe # owner: Administrator # group: Domänen-Benutzer user::rwx group::--- group:SYSTEM:rwx mask:rwx other:--- $ perl -e 'use filetest "access"; if ( ! -x "/c/Programme/Mozilla/mozilla.exe" ) {print "not executable";}' gerrit AT ismene ~ $ 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 |