Skip to content

Conversation

@pombredanne
Copy link
Member

This PR replaces #42 and fixes #44 to properly handle symlinks.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Introduce a new ExtractEvent that extract_tar() returns and
  contains error and warning messages.
* Extract symlinks correctly.
* do not try to strip leading slash in paths
* do not try to treat broken links specially when extracting links

Replacing: #42
Referenced-by: #44
Reported-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Use the new "as_events" arg to get a list of ExtractEvents. But this
  is no longer the default.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne pombredanne merged commit 3061713 into main Jul 30, 2022
@pombredanne pombredanne deleted the extract-symlinks branch July 30, 2022 20:54
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.

"_extract_tar: skipping link with missing target:" when extracting image

2 participants