From: Matthias Bolte Date: Sat, 2 Jan 2010 12:07:29 +0000 (+0100) Subject: esx: Don't warn about an empty URI path X-Git-Tag: v0.7.6~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0367e86ee2008d057e85102b45fe1b1615742e9;p=thirdparty%2Flibvirt.git esx: Don't warn about an empty URI path --- diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 5cdadfd6ec..30e21e0744 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -293,7 +293,8 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED) return VIR_DRV_OPEN_DECLINED; } - if (conn->uri->path != NULL && STRNEQ(conn->uri->path, "/")) { + if (conn->uri->path != NULL && STRNEQ(conn->uri->path, "") && + STRNEQ(conn->uri->path, "/")) { VIR_WARN("Ignoring unexpected path '%s' in URI", conn->uri->path); }