util/cutils: Skip "." when looking for next directory component
commit342e3a4f20653c2d419cc0e8fdc0b99dfea32fed
authorStefan Weil <sw@weilnetz.de>
Mon, 8 Feb 2021 20:57:52 +0000 (8 21:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Feb 2021 16:15:39 +0000 (16 17:15 +0100)
treeec8f85778c03a03c161706f0e08ddef460b904ee
parentb0019c995e0397092d5db5caa8262b67036c2a89
util/cutils: Skip "." when looking for next directory component

When looking for the next directory component, a "." component is now skipped.

This fixes the path(s) used for firmware lookup for the prefix == bindir case
which is standard for QEMU on Windows and where the internally
used bindir value ends with "/.".

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20210208205752.2488774-1-sw@weilnetz.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/cutils.c