If the "score" of the Linux guest identification from os-release is
the same as from the LSB score, use the os-release data. The os-release
standard is well established and the LSB is deprecated.
int lsbScore = HostinfoLsb(&lsbData);
int osReleaseScore = HostinfoOsRelease(&osReleaseData);
- /* We prefer the LSB so as to maintain the best backwards compatibility. */
- if ((lsbScore > 0) && (lsbScore >= osReleaseScore)) {
+ /*
+ * Now that the os-release standard is long stable, choose it over the LSB
+ * standard, all things being the same.
+ */
+
+ if ((lsbScore > 0) && (lsbScore > osReleaseScore)) {
size_t fields = ARRAYSIZE(lsbFields) - 1; // Exclude terminator
if (lsbData[0] != NULL) { // Name