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(archive/untar.ts): Cannot access symlinks in archives #3686

Merged
merged 2 commits into from
Oct 6, 2023
Merged

fix(archive/untar.ts): Cannot access symlinks in archives #3686

merged 2 commits into from
Oct 6, 2023

Conversation

cwirving
Copy link
Contributor

@cwirving cwirving commented Oct 4, 2023

Fixes #3232

Added a linkName optional property to class TarEntry so that the destination of symbolic link entries can be read. The entry is optional so that existing code that processes files, directories, etc. don't see an unexpected new property, but the property is set for entries of type "symlink".

The change is minimal so that existing tests are unchanged but a new test that extracts an archive containing a file and a symbolic link to this file demonstrates the new behavior.

A couple of existing lines were reformatted by deno fmt, but I assume that we want all files formatted...

Added a `linkName` optional property to class `TarEntry` so that the destination of symbolic link entries can be read.
@cwirving cwirving requested a review from kt3k as a code owner October 4, 2023 02:32
@CLAassistant
Copy link

CLAassistant commented Oct 4, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@kt3k kt3k merged commit c7b94e3 into denoland:main Oct 6, 2023
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.

Cannot access symlinks in archives
3 participants