This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Empty file without "x" permission is successfully executable on Cygwin
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin at cygwin dot com>
- To: Ken Brown <kbrown at cornell dot edu>
- Cc: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Tue, 6 Aug 2019 20:39:02 +0000
- Subject: Re: Empty file without "x" permission is successfully executable on Cygwin
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=ncbi.nlm.nih.gov;dmarc=pass action=none header.from=ncbi.nlm.nih.gov;dkim=pass header.d=ncbi.nlm.nih.gov;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0XnfOKcas1uy9SvsBHzdpUrCk+EIdzjEkfMBnvpJ1Jc=; b=c0cZCXVJqJSC+U/8jOrF7Pw5xjw4b5qOirTUkkV6bYTFkzUXA1/2mEmfF0GD2tdbq9z5LYiK9l3dEuDSUTuVTNquqKB+wu9taFsVN3ft7ZC1YSNimb25Yp7mdvyEtRmeDXKdnYPVme7j4z04PI37ISm/IWvnrxjA7GNMWGHETN5WslhEeNGL0YLQKWfDVQd0FFzvEgUV8K7PDyZ3AXAQ8g/yOtIAIBtHxOTm/K1+HZ/rGX3fOMZI0tzOuyNjVaxdJckx1w0Fk/qdWlijoARvH4nnQU4WZbEHoIekrXw07Qhd8DmNeinxngeTY+KgkwvwPZjg4eL38NXjHIL16IMSDQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RSTxFCHwmhOAoJtd0izL60MVW35PbiLNuxcWnNRJ9ONMixw/GP9qC5wIngLfsT6qLcs01zI5A9EDbvcG/tuTmkBpKhRvrCTFda9fPBjdVaA7b5+DZWvDyOFzNZv3BA1fmH8VKABIvO7kbQbk4sD/xuKhvbs4EL4xo8FDI3CgJ8OqHNsJpjeeikxlJcz5XlKslsoKAqDoXivDuk5NZ5c0lG+LY4+IhXUGlkE9mNIlSKsMS//sd8A2L5JS4vmVYgwJtvHRNhNVyekDK6ZOkP8LxKIkcFqpSRmH6HqmnAZ3AQbLd6X+IoaqAivYnRpcu9tXjxd/CShv84pvYTdoTwoixA==
- Ironport-sdr: OEn7GEHPbPa7MFOLOHJ3CLFdPi663TBTEI10yI8ZIqpgyiy2Iji/JqV28JKbW6AhGK/4OuN5QH Z6QDcheLnvog==
- Reply-to: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
> 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.
--
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