Skip to content

add optional disablement of symlink validation#119

Merged
mafintosh merged 2 commits intomafintosh:masterfrom
bryopsida:optional-symlink-validation
Jun 30, 2025
Merged

add optional disablement of symlink validation#119
mafintosh merged 2 commits intomafintosh:masterfrom
bryopsida:optional-symlink-validation

Conversation

@bryopsida
Copy link
Copy Markdown
Contributor

@bryopsida bryopsida commented Jun 29, 2025

What

Some tarballs have symlinks that are valid after extraction but not from the context of the extraction working directory, specifically, a symlink with an absolute path that is valid once you enter the chroot. An example of tool that creates tarballs like this is lxc distro builder: https://github.com/lxc/distrobuilder, the tar cli program is also able to extract these and prior versions of this module were able to extract these.

This adds the ability to disable symlink validation with a new parameter

validateSymlinks which defaults to true if not provided.

@bryopsida bryopsida changed the title add optional disablement of symlinks add optional disablement of symlink validation Jun 29, 2025
@mafintosh
Copy link
Copy Markdown
Owner

LGTM, landing on green

@mafintosh mafintosh merged commit 374460e into mafintosh:master Jun 30, 2025
3 checks passed
@mafintosh
Copy link
Copy Markdown
Owner

3.1.0

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.

2 participants