Re: [PATCH] Don't execute binary files if execve() returned ENOEXEC.

2017-02-08 Thread Jilles Tjoelker
On Wed, Feb 08, 2017 at 09:02:33AM +0100, Adam Borowski wrote: > On Tue, Feb 07, 2017 at 11:52:08PM +0100, Jilles Tjoelker wrote: > > On Tue, Feb 07, 2017 at 09:33:07AM +0100, Adam Borowski wrote: > > > Both "dash -c foo" and "./foo" are supposed to be able to run > > > hashbang-less > > >

[PATCH] Don't execute binary files if execve() returned ENOEXEC.

2017-02-07 Thread Adam Borowski
Both "dash -c foo" and "./foo" are supposed to be able to run hashbang-less scripts, but attempts to execute common binary files tend to be nasty: especially both ELF and PE tend to make dash create a bunch of files with unprintable names, that in turn confuse some tools up to causing data loss.