Page MenuHomeFreeBSD

D44734.diff
No OneTemporary

D44734.diff

diff --git a/sbin/ldconfig/elfhints.c b/sbin/ldconfig/elfhints.c
--- a/sbin/ldconfig/elfhints.c
+++ b/sbin/ldconfig/elfhints.c
@@ -220,7 +220,7 @@
close(fd);
hdr = (struct elfhints_hdr *)mapbase;
- is_be = be32toh(hdr->magic) == ELFHINTS_MAGIC;
+ is_be = hdr->magic == htobe32(ELFHINTS_MAGIC);
if (COND_SWAP(hdr->magic) != ELFHINTS_MAGIC)
errx(1, "\"%s\": invalid file format", hintsfile);
if (force_be && !is_be)

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 9, 3:50 AM (6 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15729137
Default Alt Text
D44734.diff (428 B)

Event Timeline