mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Don't try to handle URIs with hostname in test driver
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 26 18:56:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/test.c: Don't try to handle URIs with a hostname
|
||||||
|
|
||||||
Tue Jun 26 18:53:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Tue Jun 26 18:53:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/internal.h, src/libvirt.c, src/driver.h, src/libvirt_sym.version
|
* src/internal.h, src/libvirt.c, src/driver.h, src/libvirt_sym.version
|
||||||
|
|||||||
@@ -743,6 +743,11 @@ int testOpen(virConnectPtr conn,
|
|||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uri->server) {
|
||||||
|
xmlFreeURI(uri);
|
||||||
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
}
|
||||||
|
|
||||||
/* From this point on, the connection is for us. */
|
/* From this point on, the connection is for us. */
|
||||||
if (!uri->path
|
if (!uri->path
|
||||||
|| uri->path[0] == '\0'
|
|| uri->path[0] == '\0'
|
||||||
|
|||||||
Reference in New Issue
Block a user