Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix computing FreeBSD minor version
Baptiste Daroussin committed 6 years ago
commit 78af05f78c88c222e51ab4830874021c439af1ff
parent 6c7de33
1 file changed +1 -1
modified libpkg/pkg_elf.c
@@ -803,7 +803,7 @@ elf_note_analyse(Elf_Data *data, GElf_Ehdr *elfhdr, struct os_info *oi)
		xasprintf(&oi->version, "%d", (version + 1000000) / 100000000);
#endif
		xasprintf(&oi->version_major, "%d", version / 100000);
-
		xasprintf(&oi->version_minor, "%d", (((version / 100 % 1000)+1)/2)*2);
+
		xasprintf(&oi->version_minor, "%d", (version / 1000 % 100));
		xasprintf(&oi->version, "%d", version / 100000);
	}