mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 03:40:52 +04:00
path_normalize removes the empty, "." and ".." components of a path without looking at the file system, so it also normalises a path whose target does not exist yet, such as a mountpoint a service waits for. An absolute path stays below "/", a relative one keeps the ".." it cannot resolve. Signed-off-by: Daniel Golle <daniel@makrotopia.org>