Re: execve() returns ENOENT when ld-linux.so isn't found

From: Olaf van der Spek
Date: Fri Mar 26 2010 - 14:40:37 EST


On Fri, Mar 26, 2010 at 12:56 PM, Ulrich Drepper <drepper@xxxxxxxxx> wrote:
> No. ÂENOENT is the right value.
>
> Once again, read my first message. ÂThe shell cannot just report the
> error anyway since there can be many different reasons for the
> problem. ÂIf the dynamic linker is missing it has to be discovered and
> then reported. ÂIn that message the correct error code is ENOENT.
>
> Don't try to change things which are as good as any other solution.
> The error message alone is in no case sufficient. ÂFix your shells.

What about other apps that call execve?
Sounds like a lot of code duplication is needed.

Olaf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/