]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fdt] Allow for trailing slashes in path lookups
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Apr 2025 10:26:49 +0000 (11:26 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 14 Apr 2025 10:26:49 +0000 (11:26 +0100)
commit69af6f0c30b8a5049fea47ce44d4cbbca1bfac65
tree551552a9c173f63253ae3eebc3d87a6b4a6eb3cb
parent96dfaa7e7ac40fa068172ea39b70609af2212fb1
[fdt] Allow for trailing slashes in path lookups

Using fdt_path() to find the root node "/" currently fails, since it
will attempt to find a child node with the empty name "" within the
root node.

Fix by changing fdt_path() to ignore any trailing slashes in a device
tree path.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fdt.c