]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-ssh-helper: Accept ?socket= in connection URI
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 3 Feb 2023 09:52:06 +0000 (10:52 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Feb 2023 15:50:45 +0000 (16:50 +0100)
commit77b4a67cf67dcf6df949ad9ec5772ded14a37819
treea8a3ca35ac2e6d21d4b37e2d75de78a2df6b8639
parent8275a06182637dd494fc961e83b0a339efee9c1d
virt-ssh-helper: Accept ?socket= in connection URI

Similarly to the previous commit, let's accept "socket" parameter
in the connection URI. This change will allow us to use
virt-ssh-helper instead of 'nc' in all cases (done in one of
future commits).

Please note, when the parameter is used it effectively disables
automatic daemon spawning and an error is reported. But this is
intentional - so that the helper behaves just like regular
virConnectOpen() with different transport than ssh, e.g. unix.

But this 'change' is acceptable - there's no way for users to
make our remote code pass the argument to virt-ssh-helper, yet.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/remote/remote_ssh_helper.c