]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Deal with conflict with Dell's Open Manage Software
authorVMware, Inc <>
Mon, 15 Oct 2012 04:56:04 +0000 (21:56 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Fri, 19 Oct 2012 18:32:42 +0000 (11:32 -0700)
When dell open manage software and vmware tools uses the same libraries.
There is a conflict as the versions of libraries are not the same.

This does not really affect open-vm-tools as they use system libraries
and do not ship their own.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/services/vmtoolsd/pluginMgr.c

index 119a520b71deb4c31d6603e030eac0e6a9037f66..38095981fdde1c276d2b463f1956df3d9b0dcaab 100644 (file)
@@ -547,6 +547,7 @@ ToolsCoreLoadDirectory(ToolsAppCtx *ctx,
       }
 
 #ifdef USE_APPLOADER
+      /* Trying loading the plugins with system libraries */
       if (!LoadDependencies(path, FALSE)) {
          g_warning("Loading of library dependencies for %s failed.\n", entry);
          goto next;
@@ -554,6 +555,17 @@ ToolsCoreLoadDirectory(ToolsAppCtx *ctx,
 #endif
 
       module = g_module_open(path, G_MODULE_BIND_LOCAL);
+#ifdef USE_APPLOADER
+      if (module == NULL) {
+         /* Falling back to the shipped libraries */
+         if (!LoadDependencies(path, TRUE)) {
+            g_warning("Loading of shipped library dependencies for %s failed.\n",
+                     entry);
+            goto next;
+         }
+         module = g_module_open(path, G_MODULE_BIND_LOCAL);
+      }
+#endif
       if (module == NULL) {
          g_warning("Opening plugin '%s' failed: %s.\n", entry, g_module_error());
          goto next;