file path normalisation: edge case
file path normalisation: edge case: a task in smol-software-harbor (Harbor dataset). path normalize in src/path.c mishandles relative paths that climb above their start: "../../b" becomes "b" and "a/../.." becomes "." . As documented in src/path.h , leading .. segments of relative paths must be…
The task
`path_normalize` in `src/path.c` mishandles relative paths that climb above their start: `"../../b"` becomes `"b"` and `"a/../.."` becomes `"."`. As documented in `src/path.h`, leading `..` segments of relative paths must be kept (`"../a/../../b"` -> `"../../b"`). Fix it and run `make -B test`.
Part of efederici/smol-software-harbor.