Ah, Tigran, this is something I was about to send you.. strncmp doesn't
make much sense there; it's not a string after all, it's a 4-byte magic
number:
if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
makes much more sense. And if this makes a difference on other endian
platforms, why are they doing a memset further down the file in the
core dump routine? :-)
-- Matthew Wilcox <willy@bofh.ai> "Windows and MacOS are products, contrived by engineers in the service of specific companies. Unix, by contrast, is not so much a product as it is a painstakingly compiled oral history of the hacker subculture." - N Stephenson- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/