Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Use clean path for map and comparison.#1072

Merged
Random-Liu merged 1 commit intocontainerd:masterfrom
Random-Liu:clean-path
Mar 4, 2019
Merged

Use clean path for map and comparison.#1072
Random-Liu merged 1 commit intocontainerd:masterfrom
Random-Liu:clean-path

Conversation

@Random-Liu
Copy link
Copy Markdown
Member

@Random-Liu Random-Liu commented Mar 4, 2019

Fixes #1059.

Use filepath.Clean for map deduplication and path comparison.

I've searched with git grep -i: ==.*path, path.*==, \[.*path.*\], ==.*source, source.*==, \[.*source.*\], ==.*src, src.*==, \[.*src.*\], ==.*dst, dst.*==, \[.*dst.*\],==.*dest, dest.*==, \[.*dest.*\]. And added filepath.Clean for all appearance.

We should cherry-pick this fix into all supported branches.
Signed-off-by: Lantao Liu [email protected]

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Random-Liu
Copy link
Copy Markdown
Member Author

Apply LGTM based on #1072 (review)

@Random-Liu Random-Liu closed this Mar 4, 2019
@Random-Liu Random-Liu reopened this Mar 4, 2019
@Random-Liu Random-Liu added the lgtm label Mar 4, 2019
@Random-Liu Random-Liu merged commit 95f564f into containerd:master Mar 4, 2019
@Random-Liu Random-Liu deleted the clean-path branch March 4, 2019 22:01
Random-Liu added a commit that referenced this pull request Mar 5, 2019
Random-Liu added a commit that referenced this pull request Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

failed to create containerd container: taking runtime copy of volume

3 participants