]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Unknown Linux, later than 5 should report 5, not 4
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Jul 2020 18:53:01 +0000 (11:53 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Jul 2020 18:53:01 +0000 (11:53 -0700)
We want to report the highest version we know about in the short name.

open-vm-tools/lib/misc/hostinfoPosix.c

index 0a57ce08577720ad4c2b5d5ea103ac4717e43491..7be1ab7e8a3fe306f11abd72300ee54f4485d816 100644 (file)
@@ -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) {