diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-03-03 20:06:53 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-03-03 20:06:53 +0000 |
| commit | 185dc761699e3a7daa97d3d5750da27f021b6246 (patch) | |
| tree | 253ecc61ca7e59148f424853c4028f2fce95f4d3 | |
| parent | ef5dc8a96dc4d736be7d38b86a31dbec0fd49b1f (diff) | |
Notes
| -rw-r--r-- | sys/kern/imgact_aout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index d183a22aab50..b369df17ef53 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_aout.c,v 1.22 1996/01/19 03:57:54 dyson Exp $ + * $Id: imgact_aout.c,v 1.23 1996/03/02 19:38:06 peter Exp $ */ #include <sys/param.h> @@ -66,9 +66,11 @@ exec_aout_imgact(imgp) * Linux and *BSD binaries look very much alike, * only the machine id is different: * 0x64 for Linux, 0x86 for *BSD, 0x00 for BSDI. + * NetBSD is in network byte order.. ugh. */ if (((a_out->a_magic >> 16) & 0xff) != 0x86 && - ((a_out->a_magic >> 16) & 0xff) != 0) + ((a_out->a_magic >> 16) & 0xff) != 0 && + ((((int)ntohl(a_out->a_magic)) >> 16) & 0xff) != 0x86) return -1; /* |
