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

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: <42A32D8C.9080408@scytek.de>
Date: Sun, 05 Jun 2005 12:51:24 -0400
From: Volker Quetschke <quetschke AT scytek DOT de>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: perl -x doesn't recognize file as executable
X-IsSubscribed: yes

--------------enigA41EFFE05F6ECB83A16AD4B9
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I stumbled over the following problem, perl's -x doesn't recognize
some files as executable, even though they are and test -x does.

(The following example uses nsis.exe but something like java.exe
would show the same problem.)

Examples:

$ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable"
executable

$ perl -e 'if ( -e "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "exist";}'
exist

*but*

$ perl -e 'if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not 
executable";}'
not executable

I'm logged in as user q:

$ id -a
uid=1001(q) gid=513(none) 
groups=0(root),513(none),544(Administratoren),545(Benutzer)

Here are some informations about the file:

$ ls -l /cygdrive/c/Programme/NSIS/NSIS.exe
-rwx------+ 1 Administratoren none 254976 Nov 10  2003 
/cygdrive/c/Programme/NSIS/NSIS.exe*

q AT lisi ~
$ 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
group:Hauptbenutzer:rwx
mask:rwx
other:---

System information:
$ cygcheck -c | grep perl
perl                 5.8.6-4             OK

$ uname -a
CYGWIN_NT-5.0 lisi 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown 
unknown Cygwin

(I can provide a cygcheck output if desired)

Volker


-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------enigA41EFFE05F6ECB83A16AD4B9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCoy2MPTXJup+KeF0RAmt2AKCjtzjhaZYfGFhhULM4nsNLS6RJeQCg3XY6
stigdL9zpJ9cFrpvn644qSw=
=uv8L
-----END PGP SIGNATURE-----

--------------enigA41EFFE05F6ECB83A16AD4B9--

- Raw text -


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