esx: Don't warn about an empty URI path

This commit is contained in:
Matthias Bolte 2010-01-02 13:07:29 +01:00
parent 44112bce89
commit b0367e86ee

View File

@ -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);
}