Closed 6opuc closed 1 year ago
If you want to allow path traversal, you need to explicitly allow it using ExtractContents(String, Boolean).
To log the actual internal file paths of the tar archive (on either extract and/or create), use:
tarArchive.ProgressMessageEvent += (archive, entry, message) => {
Console.WriteLine($"{entry.Name}: {message}");
}
I think the core of this issue was what #582 fixed. The sample above works as expected in v1.4+: https://dotnetfiddle.net/TDSoGn
Steps to reproduce
Expected behavior
Archive should be extracted
Actual behavior
InvalidNameException(Parent traversal in paths is not allowed)
Version of SharpZipLib
1.3.3
Obtained from (only keep the relevant lines)
Example