Re: [PATCH] Return ENOEXEC, not ENOENT, if a binary's or script's interpreter doesn't exist.



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@xxxxxxx
Faculty and Student Experience
Information Services & Technology
Massachusetts Institute of Technology
--
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/



Relevant Pages

  • Re: [PO] halting problem reading comprehension
    ... >> Where I'm I missing something? ... Apparently analytical truth is not one of them.' ... and Peter can no more learn to modify his ... >We can't give Peter understanding of the issues, ...
    (comp.theory)
  • Re: [PO] halting problem reading comprehension
    ... >> Where I'm I missing something? ... Apparently analytical truth is not one of them.' ... and Peter can no more learn to modify his ... >We can't give Peter understanding of the issues, ...
    (sci.logic)
  • Re: OO? Oh oh!
    ... > to gain the understanding and then laugh about it, ... but it is comforting to think that you're not missing anything, ... > would really help their development efforts. ... I think it is a revelation. ...
    (comp.lang.cobol)
  • Re: OT:Sirius Radio
    ... What parts am I missing? ... The understanding the game part. ... at least we know that your recent ophthalmic adventures haven't had ...
    (rec.outdoors.fishing.fly)
  • Re: Hash Surprises with Fixnum, #hash, and #eql?
    ... The different interpreters do it both ways, ... that you're engaging in defensive sophistry rather than rational ... Perhaps I'm missing something. ...
    (comp.lang.ruby)