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

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