From: Kruti Pendharkar Date: Tue, 12 May 2026 16:42:31 +0000 (-0700) Subject: Fix vmtools version string format for SDMP compatibility X-Git-Tag: stable-13.1.0~4 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=f7242795c4bcaffe98edb0b6eace45c8f43d05bf;p=thirdparty%2Fopen-vm-tools.git Fix vmtools version string format for SDMP compatibility Use 3-number version format for backward compatibility with SDMP adapters. --- diff --git a/open-vm-tools/services/vmtoolsd/mainLoop.c b/open-vm-tools/services/vmtoolsd/mainLoop.c index 61050c19d..5cd642000 100644 --- a/open-vm-tools/services/vmtoolsd/mainLoop.c +++ b/open-vm-tools/services/vmtoolsd/mainLoop.c @@ -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; } /*