]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Replace RpcOut_sendOne with RpcChannel_SendOne in vmtoolsd commandline.
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:54 +0000 (11:22 -0700)
"vmtoolsd --cmd=<payload>" uses RpcOut_sendOne which is a backdoor
only implementation. It should try vSocket before falling back to
backdoor.

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

index d7027c3cc126a07f8cea1273433ed53f57e1baf6..6e619f1d003e749b2717abc4f52ef8ac41bdefc5 100644 (file)
 
 #include "vm_assert.h"
 #include "conf.h"
-#include "rpcout.h"
 #include "str.h"
 #include "vmcheck.h"
 #include "vmtoolsd_version.h"
 #include "vmware/tools/log.h"
 #include "vmware/tools/utils.h"
 #include "vmware/tools/i18n.h"
+#include "vmware/tools/guestrpc.h"
 #include "vm_version.h"
 
 /**
@@ -69,7 +69,7 @@ ToolsCoreRunCommand(const gchar *option,
       char *result = NULL;
       Bool status = FALSE;
 
-      status = RpcOut_sendOne(&result, NULL, "%s", value);
+      status = RpcChannel_SendOne(&result, NULL, "%s", value);
 
       if (!status) {
          g_printerr("%s\n", result ? result : "NULL");