mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Reed <jdreed@MIT.EDU>
To: Pavel Machek <pavel@ucw.cz>, Geoffrey Thomas <geofft@MIT.EDU>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Return ENOEXEC, not ENOENT, if a binary's or script's interpreter doesn't exist.
Date: Thu, 30 Jul 2009 13:08:58 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.0907301259170.5785@infinite-loop.mit.edu> (raw)

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

The current behavior is only useful to people who have an understanding of 
how interpreters and binaries work on Linux.  The average desktop user 
does not have that understanding.  The average user gets an error message
such as:

/usr/bin/foo: No such file or directory.

They then go and look at /usr/bin/foo, find that it exists, and are 
extremely confused.

More advanced users might at that point try and run "ldd" on the binary 
(which will also fail, thanks to a missing interpreter).  The average user 
will never think to run "strings" on the binary and look for 
/lib/ld-linux.so.1.

> Please improve manpage instead.

What manpage do you suggest needs improvement?  execve(2)?  That again 
requires an average user to realize that they need to go look at the 
execve(2) manpage.  The average user is not going to realize that.

-Jon

---
Jonathan Reed
jdreed@mit.edu
Faculty and Student Experience
Information Services & Technology
Massachusetts Institute of Technology

             reply	other threads:[~2009-07-30 17:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 17:08 Jonathan Reed [this message]
2009-07-30 20:12 ` Alan Cox
2009-07-30 20:17 ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2009-07-09  7:48 Geoffrey Thomas
2009-07-10  5:18 ` Amerigo Wang
2009-07-10 16:17 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.0907301259170.5785@infinite-loop.mit.edu \
    --to=jdreed@mit.edu \
    --cc=geofft@MIT.EDU \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®