summaryrefslogtreecommitdiff
path: root/sbin/modload/modload.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-11 11:49:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-11 11:49:52 +0000
commitce37394e6c73504e7cadb58f6bc353002c793508 (patch)
treeef4e5eba9c02e31893dde9a092c26fdb47990bb8 /sbin/modload/modload.c
parent18a9f196ff03d0aeb2d15a921f1bf85add4952bb (diff)
only check magic in certain cases... sigh
Diffstat (limited to 'sbin/modload/modload.c')
-rw-r--r--sbin/modload/modload.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c
index cbc88f69863..aafeddb2609 100644
--- a/sbin/modload/modload.c
+++ b/sbin/modload/modload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modload.c,v 1.15 1997/09/11 11:46:09 deraadt Exp $ */
+/* $OpenBSD: modload.c,v 1.16 1997/09/11 11:49:51 deraadt Exp $ */
/* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */
/*
@@ -77,6 +77,7 @@ int dounlink = 0;
#define LDSYMTABLE "-R"
#define LDTEXTSTART "-Ttext"
#define LDSYMPREFIX ""
+#define MAGICCHECK
#endif
void
@@ -316,11 +317,13 @@ main(argc, argv)
close(modfd);
fileopen &= ~MOD_OPEN;
+#ifdef MAGICCHECK
/*
* Magic number...
*/
if (N_BADMAG(info_buf))
errx(4, "not an a.out format file");
+#endif
/*
* Calculate the size of the module