Skip to content

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

Merged
kt3k merged 2 commits into
denoland:mainfrom
cwirving:issue-3232
Oct 6, 2023
Merged

fix(archive/untar.ts): Cannot access symlinks in archives#3686
kt3k merged 2 commits into
denoland:mainfrom
cwirving:issue-3232

Conversation

@cwirving

@cwirving cwirving commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

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

CLAassistant commented Oct 4, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@kt3k kt3k left a comment

Copy link
Copy Markdown
Contributor

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