Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
oups
Baptiste Daroussin committed 14 years ago
commit de652328d4150ca8b68a56110d73beda7787187d
parent 588361c
1 file changed +2 -2
modified libpkg/pkg_elf.c
@@ -267,9 +267,9 @@ get_system_pkgarch(char *dest, size_t sz)
				abi = "n32";
			} else if ((elfhdr.e_flags & 0x00001000) > 0) {
				abi = "o32";
-
			} else if (elfhdr.e_ident[EI_DATA]) {
+
			} else if (elfhdr.e_ident[EI_DATA] == ELFCLASS32) {
				abi = "o32";
-
			} else if (elfhdr.e_ident[EI_DATA]){
+
			} else if (elfhdr.e_ident[EI_DATA] == ELFCLASS64){
				abi = "n64";
			}
			snprintf(dest + strlen(dest), sz - strlen(dest), ":%s:%s",