This is just a bug report, I've got no suggestions on a fix just now :[

problem: auto generated files, such as config.status and the libtool
script, are create with permisions
-rw-rw-rw-, not
-rwxrwxrwx.

my
CYGWIN=$'ntsec binmode'

Background: I'm looking into why libtool is currently broken, and one of
the problems is that the libtool script is created without execute
permissions.

My suspicion is that the files are checked by cygwin for #!/bin/foo at
create time, (which will fail as len==0), set to rw-rw-rw-. IMO the
correct behaviour should be to set the x bit on all files when they are
created, as long as it would be inherited from the directory above (I've
included a ls -al for reference), and not touch the x bit unless a
userland program calls chmod.

Rob


in this listing, both libtool and config.status are scripts, that should
have the x bit set.

$ ls -al
total 225
drwxrwxrwx   3 Administ None         4096 Jun  2 23:04 .
drwxrwxrwx   9 Administ None         4096 Jun  2 21:28 ..
drwxrwxrwx   2 Administ None            0 Jun  2 22:10 .libs
-rwxrwxrwx   1 Administ None        21242 Jun  2 21:53 Makefile
-rw-rw-rw-   1 Administ None         3299 Jun  2 22:29 config.cache
-rw-rw-rw-   1 Administ None         2550 Jun  2 22:29 config.log
-rw-rw-rw-   1 Administ None         7986 Jun  2 22:29 config.status
-rw-rw-rw-   1 Administ None          287 Jun  2 22:10 foo.lo
-rw-rw-rw-   1 Administ None          291 Jun  2 22:10 hello.lo
-rw-rw-rw-   1 Administ None          673 Jun  2 22:10 libhello.la
-rw-rw-rw-   1 Administ None       173168 Jun  2 22:29 libtool
-rw-rw-rw-   1 Administ None         7759 Jun  2 22:10 main.o


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to