Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix behavior for StripComponents with leading ./ #106

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

ystros
Copy link
Contributor

@ystros ystros commented Dec 3, 2024

The previous reimplementation of tar --strip-components did not match how tar treats leading ./ strings in its file headers. --strip-components should treat the leading . as its own component. The BOSH agent's usage of the TarballCompressor relies on this behavior, and the change is causing failures.

The previous reimplementation of tar --strip-components did not match
how tar treats leading ./ strings in its file headers.
--strip-components should treat the leading . as its own component. The
BOSH agent's usage of the TarballCompressor relies on this behavior, and
the change is causing failures.
@ystros ystros changed the base branch from master to develop December 3, 2024 17:38
Tar archives use forward slashes to separate path segments, so we should
not use os-specific separators for splitting paths.

Co-authored-by: Brian Upton <[email protected]>
@selzoc selzoc merged commit 9b77f09 into develop Dec 3, 2024
5 checks passed
@selzoc selzoc deleted the fix-strip-components-impl branch December 3, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants