delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/02/09:12:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <012101c0eb65$957b6490$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Subject: ntsec and shell script problem
Date: Sat, 2 Jun 2001 23:11:48 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 02 Jun 2001 13:03:08.0029 (UTC) FILETIME=[5E73FAD0:01C0EB64]

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

- Raw text -


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