Mail Archives: cygwin/2005/06/05/20:19:08
--------------enig9775CFD5B5ABBBA3D3F81801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi!
>>$ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable"
>>executable
>
> coreutils have special logic for binaries with .exe suffix, which is why
> this works.
You mean special logic for windows file permissions (ACL?), not only
using the owner/group/other scheme?
>>$ perl -e 'if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not
>>executable";}'
>>not executable
>
> Technically the file is not executable:
I beg to differ ;) Technically it depends how you define executable, if
you only know ugo permissions (or whatever this scheme is called)
then it it *not* executable.
If you decide to just test it and try to execute it you will see
that it executes quite well.
So IMHO it is executable, but technically some programs might not
see that because they are looking at the wrong place.
>>$ id -a
>>uid=1001(q) gid=513(none)
>>groups=0(root),513(none),544(Administratoren),545(Benutzer)
compare -------------------------------------------^^^^^^^^^^
$ 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
> The permissions on the file indicate that it is only executable by the
> owner (Administratoren) which is not the account you are running the
> command from. If you add +x for the group or chown the file it should
> work.
I know that I can work around this, but Joe Average might not have
the rights to change the ownership of a file because he might not be in
the Admin group.
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
--------------enig9775CFD5B5ABBBA3D3F81801
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.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCo5Z7PTXJup+KeF0RAqFWAJ9JwO9dEKCsvvZ8/dJ5x1ZZt+MCegCfRiFT
NnsqP1KqAQU8xRb+SH/ERFc=
=bc/P
-----END PGP SIGNATURE-----
--------------enig9775CFD5B5ABBBA3D3F81801--
- Raw text -