]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Avoid a vmtoolsd service error message if not on a VMware hypervisor.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 21 Oct 2022 18:39:49 +0000 (11:39 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 21 Oct 2022 18:39:49 +0000 (11:39 -0700)
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.

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

index cd8f2dbee465296f577f0d63ca099d61aa571a4a..9ca9badd54d88eb6a2d20da6a51832bbf8ab195a 100644 (file)
@@ -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;
    }