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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Olaf van der Spek
Date: Thursday, March 25, 2010 - 12:29 pm

On Wed, Mar 24, 2010 at 11:45 PM,  <drepper@gmail.com> wrote:

That sounds closer to the actual error than ENOENT.

ENOENT: The file filename or a script or ELF interpreter does not
exist, or a shared library needed for file or interpreter cannot be
found.
ENOEXEC: An executable is not in a recognized format, is for the wrong
architecture, or has some other format error that means it cannot be
executed.

ENOENT shouldn't be overloaded like this, as it's common meaning is:
file not found. So it shouldn't be returned if the argument to execve
is actually found.

Olaf
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: execve() returns ENOENT when ld-linux.so isn't found, Olaf van der Spek, (Thu Mar 25, 12:29 pm)
Re: execve() returns ENOENT when ld-linux.so isn't found, Luca Barbieri, (Thu Mar 25, 2:00 pm)
Re: execve() returns ENOENT when ld-linux.so isn't found, Ulrich Drepper, (Fri Mar 26, 4:56 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Olaf van der Spek, (Fri Mar 26, 11:40 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Luca Barbieri, (Fri Mar 26, 2:06 pm)
Re: execve() returns ENOENT when ld-linux.so isn't found, Ulrich Drepper, (Fri Mar 26, 2:15 pm)
Re: execve() returns ENOENT when ld-linux.so isn't found, Olaf van der Spek, (Sat Mar 27, 4:50 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Ulrich Drepper, (Sat Mar 27, 5:05 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Luca Barbieri, (Sat Mar 27, 7:51 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Olaf van der Spek, (Mon Mar 29, 7:40 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Ulrich Drepper, (Mon Mar 29, 7:57 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Andreas Schwab, (Mon Mar 29, 9:00 am)
Re: execve() returns ENOENT when ld-linux.so isn't found, Olaf van der Spek, (Wed Mar 31, 12:36 pm)