mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
hdr.elf.e_ident[EI_OSABI] is not a bitmask so '==' should been used.
Reported by: Artem Belevich <fbsdlist at src.cx>
This commit is contained in:
parent
1161d4202c
commit
70557f4f83
1 changed files with 2 additions and 2 deletions
|
|
@ -331,7 +331,7 @@ is_executable(const char *fname, int fd, int *is_shlib, int *type)
|
|||
return (0);
|
||||
}
|
||||
if (hdr.elf32.e_type == ET_DYN) {
|
||||
if (hdr.elf32.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) {
|
||||
if (hdr.elf32.e_ident[EI_OSABI] == ELFOSABI_FREEBSD) {
|
||||
*is_shlib = 1;
|
||||
return (1);
|
||||
}
|
||||
|
|
@ -373,7 +373,7 @@ is_executable(const char *fname, int fd, int *is_shlib, int *type)
|
|||
return (0);
|
||||
}
|
||||
if (hdr.elf.e_type == ET_DYN) {
|
||||
if (hdr.elf.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) {
|
||||
if (hdr.elf.e_ident[EI_OSABI] == ELFOSABI_FREEBSD) {
|
||||
*is_shlib = 1;
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue