delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/24/01:55:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=XISTa6
sVB59kZQCjHNP3PJZVjmKNXyboLI5uBKjVVaQ8xBfyt1q/roFyFX6ZofRdtWVdOi
3Q/Xw/smfC90WDCPfNBTqKCO2TwRpb+aY4YI1hLNv7KcPGttanae2DjadfStLXha
54/fxYBtMOW74sEVFpO51O1C1epAt7kkIIDHU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; s=default; bh=gy8+2trcJFYU
x0idDlj/kkXzW2I=; b=KVoUWjz3Oa4B+ZNOVTudKKBrlQPeqW9Kfn65EcsaYToV
9oI1hNLu05E9bfj3MHgty3Tb+1+nak4zhgXl55WBMtVcCK0q3R/2L1YFDO/6/Bgg
fwyklp5eyJPLR+XaebGZx23PH3+x8J4Ra0X7HpbnWQt6a1zW3KRNaGI53cLzKok=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=fat, Cygwin, contrary, existed
X-HELO: lb3-smtp-cloud8.xs4all.net
Date: Sat, 24 Aug 2019 07:54:42 +0200
Message-ID: <9b61d432ff036788aec774109d57dc3d@smtp-cloud8.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Empty file without "x" permission is successfully executable on Cygwin
References: <BL0PR0901MB430826D79AF2771A6A5C2A99A5D50 AT BL0PR0901MB4308 DOT namprd09 DOT prod DOT outlook DOT com> <f7311e1f60cba7ebae136109f077d2d4 AT smtp-cloud9 DOT xs4all DOT net>
In-Reply-to: <f7311e1f60cba7ebae136109f077d2d4@smtp-cloud9.xs4all.net>
User-Agent: mua.awk 0.99

On Wed, 07 Aug 2019 08:12:28, Houder  wrote:
> On Tue, 6 Aug 2019 19:09:04, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin"  wrote:
> > > zero-sized? Irrelevant.
> > 
> > It is actually very relevant.  Because executing an empty script results in=
> >  "success" (exit code 0) -- that creates a false-positive.
[snip]

> What I meant, was: a regular file (empty or not), but w/o shebang and w/o the
> execute bit, will be executed by Cygwin, contrary to what happens on Unix.
> 
> This behaviour (again: different from Unix) has existed for at least a decade.
> 
> That is why I wrote: Cygwin != Linux.
> 
> When I found out, years and years ago, I assumed that the deviation was due
> to FAT filesystems (not being able to represent the x-bit).
> 
> Perhaps I was wrong. Perhaps the Cygwin maintainers merely goofed up long ago.

And again I was wrong ...

 - https://cygwin.com/ml/cygwin/2009-06/msg00721.html
   ( Re: Cygwin 1.7: Possible file permission errors in 'base-files' )
   "I've put that on my TODO list."

 - https://cygwin.com/ml/cygwin/2009-06/msg00727.html
   ( HEADSUP maintainers: Packages install scripts without execute permissions )
   "I have the patch for this ready ..."

Now that the problem has been fixed by Corinna, she can remove it from her TODO
list :-P

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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