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 absolute paths being extracted outside of destination directory #83

Merged
merged 1 commit into from
Jun 21, 2022

Commits on Jun 21, 2022

  1. Fix absolute paths extracting outside of destination directory by str…

    …ipping leading '/'
    
    Previously, an absolute entry path would be joined with the destination, but in Rust joining an absolute path onto another one will just return the absolute path which results in files being extracted outside of the destination directory. This commit changes the behaviour to strip the leading '/' from an absolute path, matching behaviour from bsdtar and gnu tar which will extract the files into the destination directory.
    rohan-b99 committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    ee19b37 View commit details
    Browse the repository at this point in the history