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

Move Temp path to the user's location #1146

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Jun 10, 2021

Fixes #189 , and maybe others with strange permissions errors.

Change

Move the temp directory that is used from the package specific temp to the user's temp location. This should prevent the Mandatory Low ACL that was apparently causing #189 from being inherited. While this is more avoiding the problem than fixing it, given the relatively low rate of occurrence it might be hard to ensure that it was truly fixed by actually changing the ACLs (and would require much more time and code to write).

Additionally changes the behavior of Runtime::GetPathTo to delete non-directories when they are encountered rather than just erroring directly.

Validation

Manually validated that installers are downloaded to the new location; do not have a repro of #189 to try against, but given the root cause it is unlikely that it wouldn't be fixed.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner June 10, 2021 00:41
@ghost ghost added Area-External Issue outside of winget-cli source Issue-Bug It either shouldn't be doing this or needs an investigation. labels Jun 10, 2021
Copy link
Contributor

@yao-msft yao-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External Issue outside of winget-cli source Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discord does not install
2 participants