]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: Accept empty "path" URI component same way as "/"
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Apr 2025 14:25:37 +0000 (16:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Apr 2025 16:04:11 +0000 (18:04 +0200)
commit59f40ba67cc7d0a3f8eeb601c2f3c84def24a361
treedef05ec48c6e1030d0547b3ec197eab4634e9ade
parent617e2dc3194204a88309e3da55bec8743a5df2ea
esx: Accept empty "path" URI component same way as "/"

When connecting to "esx://" URI there's code which prints a warning that
the path is not "empty". The check validates that "uri->path" is "/".

In case when the user uses URI such as:

 esx://hostname

the warning is printed as well. Since there is no effective difference
betweeen the two allow empty strings as well.

Resolves: https://issues.redhat.com/browse/RHEL-86459
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/esx/esx_driver.c