[lkml]   [2009]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Return ENOEXEC, not ENOENT, if a binary's or script's interpreter doesn't exist.
On Thu 2009-07-09 03:48:20, Geoffrey Thomas wrote:
> If you try to execute a binary compiled for (libc5) on a machine
> with only (libc6), your shell will claim "mybinary: No such file
> or directory", even though the binary exists. The ENOENT actually applies to
> the ELF intepreter, not to the file itself. The same happens if you have a
> nonexistent interpreter in a shell script's shebang line.
> Give a more helpful and more expected error, "cannot execute binary file", in
> these cases.

NAK. Current behaviour is useful -- and it is really file thats

Please improve manpage instead.

(chmod 000 /lib also produces 'interesting' error messages. Better
document those, too). Pavel
(cesky, pictures)

 \ /
  Last update: 2009-07-11 22:53    [W:0.087 / U:2.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site