This is the mail archive of the cygwin-developers 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]

Executable bit check


Hi,

It seems that Cygwin does not check for executable bit before it allows 
a script to run, does it?

$ rm abc

$ cat <<EOF >abc
 > #!/bin/sh
 > echo Hm...
 > EOF

$ ll abc
-rw-r--r--+ 1 ibobyr Domain Users Nov 21  4 16:44 abc

$ test -x abc && echo Executable
Executable

$ ./abc
Hm...


I was able to find some references to a "patch for this [that is] ready" 
here: 
http://omgili.com/mailinglist/cygwin/cygwin/com/4A3D15705020506aimcom.html
Reply by Corinna Vinschen on Mon, 22 Jun 2009 15:11:44 +0200.

For some reason I do not see above mail in the cygwin.com mailing list 
archive (http://cygwin.com/ml/cygwin/2009-06/index.html).

For me the most annoying part is that "test -x" says that I can execute 
a file that I just did "chmod -x" on.

Ilya Bobyr

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]