[libvirt] [PATCH 2/2] client: Change default location of known_hosts file for libssh2 layer

Eric Blake eblake at redhat.com
Tue Aug 21 17:23:32 UTC 2012


On 08/21/2012 10:48 AM, Peter Krempa wrote:
> Unfortunately libssh2 doesn't support all types of host keys that can be
> saved in the known_hosts file. Also it does not report that parsing of
> the file failed. This results into truncated known_hosts files where the
> standard client stores keys also in other formats (eg.
> ecdsa-sha2-nistp256).
> 
> This patch changes the default location of the known_hosts file into the
> libvirt private configuration directory, where it will be only written
> by the libssh2 layer itself. This prevents thrashing user's files.

s/thrashing/trashing/

> ---
>  src/rpc/virnetclient.c |   17 ++++++++++-------
>  1 files changed, 10 insertions(+), 7 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120821/30772d2d/attachment-0001.sig>


More information about the libvir-list mailing list