[libvirt PATCH 1/2] rpc: Fix virt-ssh-helper detection
Neal Gompa
ngompa13 at gmail.com
Tue Oct 27 00:38:57 UTC 2020
On Mon, Oct 26, 2020 at 7:30 PM Andrea Bolognani <abologna at redhat.com> wrote:
>
> When trying to figure out whether virt-ssh-helper is available
> on the remote host, we mistakenly look for the helper by the
> name it had while the feature was being worked on instead of
> the one that was ultimately picked, and thus end up using the
> netcat fallback every single time.
>
> Fixes: f8ec7c842df9e40c6607eae9b0223766cb226336
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
> src/rpc/virnetclient.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
> index c6591ecdfc..2eabacd6e8 100644
> --- a/src/rpc/virnetclient.c
> +++ b/src/rpc/virnetclient.c
> @@ -453,7 +453,7 @@ virNetClientSSHHelperCommand(virNetClientProxy proxy,
>
> switch (proxy) {
> case VIR_NET_CLIENT_PROXY_AUTO:
> - return g_strdup_printf("sh -c 'which virt-nc 1>/dev/null 2>&1; "
> + return g_strdup_printf("sh -c 'which virt-ssh-helper 1>/dev/null 2>&1; "
> "if test $? = 0; then "
> " %s; "
> "else"
> --
> 2.26.2
>
Reviewed-by: Neal Gompa <ngompa13 at gmail.com>
--
真実はいつも一つ!/ Always, there's only one truth!
More information about the libvir-list
mailing list