]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix vmtools version string format for SDMP compatibility
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 12 May 2026 16:42:31 +0000 (09:42 -0700)
committerKruti Pendharkar <kp025370@broadcom.com>
Thu, 14 May 2026 04:49:53 +0000 (21:49 -0700)
Use 3-number version format for backward compatibility
with SDMP adapters.

open-vm-tools/services/vmtoolsd/mainLoop.c

index 61050c19d40295d04754372714178201d75371dd..5cd642000e9f57eab8b02140dc04a086ef81c4d2 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 2008-2025 Broadcom. All Rights Reserved.
+ * Copyright (c) 2008-2026 Broadcom. All Rights Reserved.
  * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -304,7 +304,15 @@ ToolsCoreReportVersionData(ToolsAppCtx *ctx)
       cmdToolsVersionStr = TOOLS_VERSION_CURRENT_STR;
    } else {
       cmdDescFmt = CMD_DESCRIPTION VMTOOLS_PRODUCT " %s.%s";
-      cmdToolsVersionStr = TOOLS_VERSION_EXT_CURRENT_STR;
+      /*
+       * Set the versionString to 3 number format. SDMP adapter code parses
+       * this string to process version. The older versions of SDMP adapters
+       * will break if the versionString is modified to 4 number format.
+       *
+       * This has to be fixed in future and set to TOOLS_VERSION_EXT_CURRENT_STR
+       * when we stop supporting older SDMP adapters.
+       */
+      cmdToolsVersionStr = TOOLS_VERSION_CURRENT_STR;
    }
 
    /*