This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
$ 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.
compare -------------------------------------------^^^^^^^^^^$ id -a uid=1001(q) gid=513(none) groups=0(root),513(none),544(Administratoren),545(Benutzer)
$ 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 ------------|
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.
-- PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |