mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* src/remote_internal.c: Fix handling of usernames (thanks to
Fabian Deutsch for finding and fixing this).
This commit is contained in:
parent
136ebc6e3c
commit
91076f111b
@ -1,3 +1,8 @@
|
|||||||
|
Tue Sep 25 14:45:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
* src/remote_internal.c: Fix handling of usernames (thanks to
|
||||||
|
Fabian Deutsch for finding and fixing this).
|
||||||
|
|
||||||
Fri Sep 21 17:14:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Fri Sep 21 17:14:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/qemu_conf.c, src/qemu_conf.h: Detect QEMU flags per-VM,
|
* src/qemu_conf.c, src/qemu_conf.h: Detect QEMU flags per-VM,
|
||||||
|
@ -315,13 +315,14 @@ doRemoteOpen (virConnectPtr conn, struct private_data *priv, const char *uri_str
|
|||||||
} else if (transport == trans_ssh) {
|
} else if (transport == trans_ssh) {
|
||||||
port = strdup ("22");
|
port = strdup ("22");
|
||||||
if (!port) goto out_of_memory;
|
if (!port) goto out_of_memory;
|
||||||
if (uri->user) {
|
|
||||||
username = strdup (uri->user);
|
|
||||||
if (!username) goto out_of_memory;
|
|
||||||
}
|
|
||||||
} else
|
} else
|
||||||
port = NULL; /* Port not used for unix, ext. */
|
port = NULL; /* Port not used for unix, ext. */
|
||||||
|
|
||||||
|
if (uri->user) {
|
||||||
|
username = strdup (uri->user);
|
||||||
|
if (!username) goto out_of_memory;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the variables from the query string.
|
/* Get the variables from the query string.
|
||||||
* Then we need to reconstruct the query string (because
|
* Then we need to reconstruct the query string (because
|
||||||
* feasibly it might contain variables needed by the real driver,
|
* feasibly it might contain variables needed by the real driver,
|
||||||
|
Loading…
Reference in New Issue
Block a user