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: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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 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: To: "cygwin AT cygwin DOT com" In-Reply-To: Message-Id: 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