Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH 1/2] report bad ELF interpreter if it causes exec to fail



On Fri, 2015-04-17 at 15:25 +0200, Kamil Dudka wrote:
> This is already implemented <https://bugzilla.redhat.com/60870> in some
> distributions of bash and tcsh <https://bugzilla.redhat.com/711066>.
> 
> Steps to reproduce:
> 
> echo 'int main () { return 0; }' > u.c
> gcc -o u u.c -Wl,-dynamic-linker,/foo/bar/baz
> zsh -c ./u
> 
> Bug: https://bugzilla.redhat.com/711067

This is such a corner case.
It shouldn't be the shell's job to reinterpret the errno codes returned
by the underlying OS.
This patch does not belong in the shell code IMHO, but at a lower-level.

I've noticed that this patch has not been accepted upstream in bash yet.

Phil.



Messages sorted by: Reverse Date, Date, Thread, Author