Re: [libvirt PATCH 1/2] rpc: Fix virt-ssh-helper detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 26, 2020 at 7:30 PM Andrea Bolognani <abologna@xxxxxxxxxx> 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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxx>


-- 
真実はいつも一つ!/ Always, there's only one truth!





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux