Skip to content

[TarFile]: normalize also concatenated paths (#1072)#1073

Open
grrtrr wants to merge 1 commit into
bazelbuild:mainfrom
grrtrr:issue_1072
Open

[TarFile]: normalize also concatenated paths (#1072)#1073
grrtrr wants to merge 1 commit into
bazelbuild:mainfrom
grrtrr:issue_1072

Conversation

@grrtrr

@grrtrr grrtrr commented Jul 11, 2026

Copy link
Copy Markdown

The result of normalize_path() may be a non-normalized path, containing e.g. ../, as a result of prepending self.directory.

Avoid the problem by using normpath() on the result. Resolves #1072.

The result of `normalize_path()` may be a non-normalized path,
containing e.g. `../`, as a result of prepending `self.directory`.

Avoid the problem by using `normpath()` on the result.
Resolves bazelbuild#1072.
@grrtrr grrtrr requested review from aiuto and cgrindel as code owners July 11, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TarFile]: normalize_path does not normalize when --directory is present

2 participants