Fix remote socket path for SSH tunnel connections

This commit is contained in:
Daniel P. Berrange 2009-06-18 13:57:40 +00:00
parent c0b64e9daa
commit 2be4d86740
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Jun 18 14:56:24 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Fix socket path for remote SSH
tunnels to honour read-only flag
Wed Jun 17 10:31:35 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/node_device.[ch] src/storage_backend.[ch]: fixes a

View File

@ -722,7 +722,10 @@ doRemoteOpen (virConnectPtr conn,
cmd_argv[j++] = strdup (priv->hostname);
cmd_argv[j++] = strdup (netcat ? netcat : "nc");
cmd_argv[j++] = strdup ("-U");
cmd_argv[j++] = strdup (sockname ? sockname : LIBVIRTD_PRIV_UNIX_SOCKET);
cmd_argv[j++] = strdup (sockname ? sockname :
(flags & VIR_CONNECT_RO
? LIBVIRTD_PRIV_UNIX_SOCKET_RO
: LIBVIRTD_PRIV_UNIX_SOCKET));
cmd_argv[j++] = 0;
assert (j == nr_args);
for (j = 0; j < (nr_args-1); j++)