mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
Walk only stripped slashes from the target, so equivalent paths such as "./foo", "foo//bar" or "../foo" did not match any entries. Normalize the target with path.Join against the root so every form of the same path selects the same subtree and ".." cannot step above the root. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>