From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111768 invoked by alias); 6 Aug 2019 21:06:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111761 invoked by uid 89); 6 Aug 2019 21:06:08 -0000 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 Received: from gproxy8-pub.mail.unifiedlayer.com (HELO gproxy8-pub.mail.unifiedlayer.com) (67.222.33.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Aug 2019 21:06:07 +0000 Received: from cmgw10.unifiedlayer.com (unknown [10.9.0.10]) by gproxy8.mail.unifiedlayer.com (Postfix) with ESMTP id 429361AB012 for ; Tue, 6 Aug 2019 15:06:05 -0600 (MDT) Received: from box867.bluehost.com ([69.195.124.67]) by cmsmtp with ESMTP id v6ejhCCf1VUbhv6ejhYHez; Tue, 06 Aug 2019 15:06:05 -0600 Received: from 99-106-192-34.lightspeed.ftwotx.sbcglobal.net ([99.106.192.34]:57912 helo=[192.168.1.86]) by box867.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hv6ei-000lw6-VQ for cygwin@cygwin.com; Tue, 06 Aug 2019 15:06:05 -0600 From: Vince Rice Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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, 06 Aug 2019 21:06:00 -0000 References: To: "cygwin@cygwin.com" In-Reply-To: Message-Id: X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00088.txt.bz2 > On Aug 6, 2019, at 3:39 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via wrot= e: >=20 >> But what's your basis for saying that an empty script shouldn't be execu= table? >=20 > 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 executa= ble, 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 fi= xed. -- 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