From: John Wolfe Date: Tue, 21 Jul 2020 18:53:01 +0000 (-0700) Subject: Unknown Linux, later than 5 should report 5, not 4 X-Git-Tag: stable-11.2.0~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9a362419af2cdc312591c5dd63258a765d6f8f0;p=thirdparty%2Fopen-vm-tools.git Unknown Linux, later than 5 should report 5, not 4 We want to report the highest version we know about in the short name. --- diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index 0a57ce085..7be1ab7e8 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -1557,7 +1557,7 @@ HostinfoDefaultLinux(char *distro, // OUT/OPT: Str_Sprintf(generic, sizeof generic, "Other Linux %d.%d kernel", majorVersion, minorVersion); distroOut = &generic[0]; - distroShortOut = STR_OS_OTHER_4X; + distroShortOut = STR_OS_OTHER_5X; } if (distro != NULL) {