[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <g766ycf6hwz4din58tUYAxe124vaj_firegpg@mail.gmail.com>
Date: Wed, 24 Mar 2010 06:49:39 -0700 (PST)
From: drepper@...il.com
To: Olaf van der Spek <olafvdspek@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: execve() returns ENOENT when ld-linux.so isn't found
On Thu, Mar 18, 2010 at 07:42, Olaf van der Spek <olafvdspek@...il.com> wrote:
> $ ls -l
> -rwxr-xr-x 1 olaf olaf 560165 2010-03-18 15:21 xwis
> $ ./xwis
> -bash: ./xwis: No such file or directory
Your shell should handle this. I'm not sure whether it's in the upstream bash (it should be) but I wrote a long, long time ago a patch which produces better messages. On my system I get:
$ ./u
bash: ./u: /some/path/does-not-exist: bad ELF interpreter: No such file or directory
It doesn't really matter what the kernel returns. The shell should do its job and at least the RHEL/Fedora version does it for a long time now.
Download attachment "signature.asc" of type "application/pgp-signature" (273 bytes)
Powered by blists - more mailing lists