From: John Wolfe Date: Thu, 10 Nov 2022 20:01:14 +0000 (-0800) Subject: Avoid a vmtoolsd service error message if not on a VMware hypervisor. X-Git-Tag: stable-12.1.5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5d9821a6a82ab773d41b7ae9afe9dc8cccff30;p=thirdparty%2Fopen-vm-tools.git Avoid a vmtoolsd service error message if not on a VMware hypervisor. When open-vm-tools comes preinstalled in a base Linux release, the vmtoolsd services are started automatically at system start and desktop login. If running on physical hardware or in a non-VMware hypervisor, the services will emit an error message to the systemd's logging service before stopping. This change removes the unwanted error message. --- diff --git a/open-vm-tools/services/vmtoolsd/mainPosix.c b/open-vm-tools/services/vmtoolsd/mainPosix.c index cd8f2dbee..9ca9badd5 100644 --- a/open-vm-tools/services/vmtoolsd/mainPosix.c +++ b/open-vm-tools/services/vmtoolsd/mainPosix.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2008-2020 VMware, Inc. All rights reserved. + * Copyright (C) 2008-2020,2022 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -178,8 +178,6 @@ main(int argc, * Check that environment is a VM */ if (!VmCheck_IsVirtualWorld()) { - g_printerr("Error: %s must be run inside a virtual machine" - " on a VMware hypervisor product.\n", argv[0]); goto exit; }