[Libvir] PATCH 14/20: disable test driver for remote URIs
Daniel P. Berrange
berrange at redhat.com
Fri Jun 22 02:08:19 UTC 2007
This trivial patch stops the test driver from grabbing any URIs which have
a hostname set.
test.c | 5 +++++
1 file changed, 5 insertions(+)
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
-------------- next part --------------
diff -r 920de456e514 src/test.c
--- a/src/test.c Thu Jun 21 21:02:00 2007 -0400
+++ b/src/test.c Thu Jun 21 21:02:01 2007 -0400
@@ -735,6 +735,11 @@ int testOpen(virConnectPtr conn,
return VIR_DRV_OPEN_DECLINED;
}
+ if (uri->server) {
+ xmlFreeURI(uri);
+ return VIR_DRV_OPEN_DECLINED;
+ }
+
/* From this point on, the connection is for us. */
if (!uri->path
|| uri->path[0] == '\0'
More information about the libvir-list
mailing list