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

From: Olaf van der Spek
Date: Mon Mar 29 2010 - 10:40:43 EST


On Sat, Mar 27, 2010 at 1:05 PM, Ulrich Drepper <drepper@xxxxxxxxx> wrote:
> On Sat, Mar 27, 2010 at 04:50, Olaf van der Spek <olafvdspek@xxxxxxxxx> wrote:
>> It didn't 'work' for me.
>
> You still don't get it? ÂNo shell provides you with a correct error
> message. ÂThere is quite some work involved (reading program header,
> finding the interpreter entry, checking the file) to give a meaningful
> error message. ÂChanging the error code alone achieves nothing.

File not found is a very common error message with a pretty will
understood meaning. Overloading it in this way causes confusion.
Overloading another error code would avoid this confusion, especially
since it's far less used.

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/