Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-Id: <3.0.5.32.20021022224028.00837bc0@h00207811519c.ne.client2.attbi.com> X-Sender: pierre AT h00207811519c DOT ne DOT client2 DOT attbi DOT com Date: Tue, 22 Oct 2002 22:40:28 -0400 To: cygwin-developers AT cygwin DOT com, cygwin-developers AT cygwin DOT com From: "Pierre A. Humblet" Subject: Re: Shell scripts [was Re: Avoiding /etc/passwd and /etc/group scans] In-Reply-To: <20021023023610.GA25192@redhat.com> References: <3 DOT 0 DOT 5 DOT 32 DOT 20021022220428 DOT 0082e750 AT h00207811519c DOT ne DOT client2 DOT attbi DOT com> <3DB5A076 DOT ABAFF076 AT ieee DOT org> <20021022191217 DOT GD4828 AT redhat DOT com> <3DB5AB53 DOT B434ED90 AT ieee DOT org> <20021022202004 DOT GA6995 AT redhat DOT com> <20021022203300 DOT GC6429 AT redhat DOT com> <3DB5BC04 DOT CD6587CB AT ieee DOT org> <20021022212028 DOT GG6429 AT redhat DOT com> <3DB5C3C4 DOT F57CE7B0 AT ieee DOT org> <3 DOT 0 DOT 5 DOT 32 DOT 20021022210518 DOT 008282a0 AT mail DOT attbi DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 20021022220428 DOT 0082e750 AT h00207811519c DOT ne DOT client2 DOT attbi DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:36 PM 10/22/2002 -0400, Christopher Faylor wrote: >>Also, you have >> buf->st_mode |= STD_XBITS; >>so there will be x bits even when it isn't readable. >>That can be improved easily, for 1 or 2 or the script. > > The file is certainly readable if you've just figured out >that it began with '#!' by reading the first two characters. I meant, e.g. if it's rw-r----- make it rwxr-x---, not rwxr-x--x. Pierre