summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-20 12:14:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-20 12:14:35 +0000
commita9ed08990dfa8ec65480004175c443226344ba2c (patch)
treee5bcc412a72bc630c4503abc105d32022ca88b68
parent04436769e9ffd0c9f179b586cd97bc446f2e5434 (diff)
correct os_mask handling for OLF; pefo
-rw-r--r--sys/kern/exec_elf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 37b683b6bb0..9820081534d 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.25 1999/06/01 17:54:31 pefo Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.26 1999/07/20 12:14:34 deraadt Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -77,17 +77,17 @@ struct elf_probe_entry {
int os_mask;
} elf_probes[] = {
#ifdef COMPAT_FREEBSD
- { freebsd_elf_probe, OOS_FREEBSD },
+ { freebsd_elf_probe, 1 << OOS_FREEBSD },
#endif
#ifdef COMPAT_LINUX
- { linux_elf_probe, OOS_LINUX },
+ { linux_elf_probe, 1 << OOS_LINUX },
#endif
#ifdef COMPAT_SVR4
{ svr4_elf_probe,
1 << OOS_SVR4 | 1 << OOS_ESIX | 1 << OOS_SOLARIS | 1 << OOS_SCO |
1 << OOS_DELL | 1 << OOS_NCR },
#endif
- { 0, OOS_OPENBSD }
+ { 0, 1 << OOS_OPENBSD }
};
int elf_load_file __P((struct proc *, char *, struct exec_package *,