Subject: Re: CVS commit: src/sys/kern
To: Matt Thomas <email@example.com>
From: Bill Studenmund <firstname.lastname@example.org>
Date: 11/04/2004 16:16:42
Content-Type: text/plain; charset=us-ascii
On Thu, Nov 04, 2004 at 11:55:28PM +0000, Matt Thomas wrote:
> Module Name: src
> Committed By: matt
> Date: Thu Nov 4 23:55:28 UTC 2004
> Modified Files:
> src/sys/kern: exec_script.c
> Log Message:
> Check to see if the script has an ELF header, and if so, return ENOEXEC.
What ever happened to the idea of making exec's have three error codes: =20
success, failed, and (the new one) forget it?
"Failed" means that a given exec didn't match the program, and something
else might; the exec code doesn't know that something else won't match.
"Forget it" means the exec code was able to recognize the file and knows
that we can not execute it.
Thus the ELF code could recognize an ELF header, then when it sees the=20
file is for a different architecture, it can return the "forget it" error.=
Thus exec_script would never get called.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----