This is the mail archive of the
mailing list for the Cygwin project.
Re: Empty file without "x" permission is successfully executable on Cygwin
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple