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

catch unzip failures from bad file names #2472

Merged
merged 1 commit into from
Aug 8, 2018
Merged

catch unzip failures from bad file names #2472

merged 1 commit into from
Aug 8, 2018

Conversation

x-kej
Copy link
Contributor

@x-kej x-kej commented Aug 7, 2018

Currently scoop install exercism-cli (with the extras bucket added) will fail, because the downloaded .zip file contains files that would be extracted outside of the target directory:

  • ../shell/README.md
  • ../shell/exercism_completion.bash
  • ../shell/exercism_completion.zsh

This PR adds 7zip fallback functionality when the System.IO.IOException occurs, almost exactly like the handling for System.IO.PathTooLongException. 7zip will safely handle those files by moving them into the target directory.

@r15ch13 r15ch13 merged commit 77a2769 into ScoopInstaller:master Aug 8, 2018
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.

None yet

2 participants