X-Recipient: archive-cygwin@delorie.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:from:content-type:content-transfer-encoding
	:mime-version:subject:date:references:to:in-reply-to:message-id;
	 q=dns; s=default; b=ZggDOksQKnhpV5fJ08myPN1fvdBTm/cD1sXjiG50NNi
	k+AHPtBQC9Q1IsQHeaASiYpF0sIuzPLXY+sl20UeylmczQMjPEWMU6umxCsmtLof
	Q3uUE+syFzMvaXBE082BelG/A0tAGeNd+ILtS0hWikoneWDJ0OmX2KDTYIanTrNU
	=
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:from:content-type:content-transfer-encoding
	:mime-version:subject:date:references:to:in-reply-to:message-id;
	 s=default; bh=o0r+iaHct+CnzBQ+BXPiWIE9t9s=; b=yFHpZqlfiNzHXU7TZ
	2yt/RnypCl0ajqWjGO24zS3rDqKtAmqqpgSMe/BhGGZ6h3TK0Tvlx4Ce7YqmeDuw
	cFEjsCcTJ/cI1GpbZf7Z2ZOTVyAX9kKNEDL18e7ZGgkL9fk9sBm59269EalMMdqs
	vYsZ7aog/VKWv9DlJ1y5oHSfNw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: gproxy8-pub.mail.unifiedlayer.com
From: Vince Rice <vrice@solidrocksystems.com>
Content-Type: text/plain;	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: Re: Empty file without "x" permission is successfully executable on Cygwin
Date: Tue, 6 Aug 2019 16:06:03 -0500
References: <BL0PR0901MB4308F5C32DC6C1B5C22F373BA5D50@BL0PR0901MB4308.namprd09.prod.outlook.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
In-Reply-To: <BL0PR0901MB4308F5C32DC6C1B5C22F373BA5D50@BL0PR0901MB4308.namprd09.prod.outlook.com>
Message-Id: <CD9BE2EF-CC1B-4BC1-B0FB-036D98D33E81@solidrocksystems.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x76L6hWm008271

> On Aug 6, 2019, at 3:39 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via wrote:
> 
>> But what's your basis for saying that an empty script shouldn't be executable?
> 
> I meant it only in the context of the script file lacking the proper "x" permission.
> Of course an empty script _with_ such permissions allowed must be executable, and it will always complete with exit code 0.

Which is why, as Ken said, the size is irrelevant. What's relevant is that it shouldn't be executing
anything that doesn't have the executable bit set. Which is what Corinna fixed.
--
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


