Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 5 Jun 2005 19:49:12 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: perl -x doesn't recognize file as executable Message-ID: <20050606024911.GA1528@efn.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42A3A773.3C6AFA4A@dessent.net> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes 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? -- 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/