Skip to content

pkg/containerfs: unify CleanScopedPath implementation, and deprecate ResolveScopedPath#47006

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:deprecate_ResolveScopedPath
Jan 3, 2024
Merged

pkg/containerfs: unify CleanScopedPath implementation, and deprecate ResolveScopedPath#47006
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:deprecate_ResolveScopedPath

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

relates to:

pkg/containerfs: unify CleanScopedPath implementation

Use stdlib's filepath.VolumeName to get the volume-name (if present) instead
of a self-crafted implementation, and unify the implementations for Windows
and Unix.

pkg/containerfs: deprecate ResolveScopedPath

If was a very shallow wrapper around symlink.FollowSymlinkInScope, so inline
that code instead.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Use stdlib's filepath.VolumeName to get the volume-name (if present) instead
of a self-crafted implementation, and unify the implementations for Windows
and Unix.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
If was a very shallow wrapper around symlink.FollowSymlinkInScope, so inline
that code instead.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah requested a review from tonistiigi as a code owner January 2, 2024 14:35
@thaJeztah thaJeztah requested a review from corhere January 2, 2024 14:35
@thaJeztah thaJeztah changed the title https://github.com/moby/moby/issues/32989 pkg/containerfs: unify CleanScopedPath implementation, and deprecate ResolveScopedPath Jan 2, 2024
@thaJeztah thaJeztah self-assigned this Jan 2, 2024
@thaJeztah thaJeztah merged commit 1f6c42c into moby:master Jan 3, 2024
@thaJeztah thaJeztah deleted the deprecate_ResolveScopedPath branch January 3, 2024 14:38
@thaJeztah thaJeztah added this to the 25.0.0 milestone Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants