Blame SOURCES/0003-hgfsPlugin-crash-fix.patch

23fda9
From 549817041fd5f6d8625431ccca94e41ebac86b55 Mon Sep 17 00:00:00 2001
23fda9
From: Miroslav Rezanina <mrezanin@redhat.com>
23fda9
Date: Tue, 16 Oct 2018 07:22:40 +0200
23fda9
Subject: hgfsPlugin crash fix
23fda9
23fda9
---
23fda9
 open-vm-tools/services/plugins/hgfsServer/hgfsPlugin.c | 7 +++++++
23fda9
 1 file changed, 7 insertions(+)
23fda9
23fda9
diff --git a/services/plugins/hgfsServer/hgfsPlugin.c b/services/plugins/hgfsServer/hgfsPlugin.c
23fda9
index c5ef872..129fa75 100644
23fda9
--- a/services/plugins/hgfsServer/hgfsPlugin.c
23fda9
+++ b/services/plugins/hgfsServer/hgfsPlugin.c
23fda9
@@ -1090,6 +1090,13 @@ ToolsOnLoad(ToolsAppCtx *ctx)
23fda9
    }
23fda9
 
23fda9
    /*
23fda9
+    * If not running in a VMware VM, return NULL to disable the plugin.
23fda9
+    */
23fda9
+   if (!ctx->isVMware) {
23fda9
+      return NULL;
23fda9
+   }
23fda9
+
23fda9
+   /*
23fda9
     * Check for VM is running in a hosted environment and if so initialize
23fda9
     * the Shared Folders HGFS client redirector.
23fda9
     */
23fda9
-- 
23fda9
1.8.3.1
23fda9