util/cutils: Skip "." when looking for next directory component
commit66075e5998f9ee1cbbca8484fb211685a7becdb9
authorStefan Weil <sw@weilnetz.de>
Mon, 8 Feb 2021 20:35:52 +0000 (8 21:35 +0100)
committerStefan Weil <sw@weilnetz.de>
Mon, 8 Feb 2021 21:25:52 +0000 (8 22:25 +0100)
tree20dc66ea296fc32733218e4a8c0e03abaea3825d
parent657a6a90b69da971afdc71501c30275ba307ff6c
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>
util/cutils.c