delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/05/22:49:15

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
Date: Sun, 5 Jun 2005 19:49:12 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019