Skip to content

[vs17.12] Merge v17.12.50 into vs17.12#12649

Merged
rainersigwald merged 2 commits intodotnet:vs17.12from
JanProvaznik:merge-v17.12.50-to-vs17.12
Oct 17, 2025
Merged

[vs17.12] Merge v17.12.50 into vs17.12#12649
rainersigwald merged 2 commits intodotnet:vs17.12from
JanProvaznik:merge-v17.12.50-to-vs17.12

Conversation

@JanProvaznik
Copy link
Member

Merging tag v17.12.50 into vs17.12 branch

…bdirectory on every build

Recreate temp on linux using CreateTempSubdirectory on every build

----
#### AI description  (iteration 2)
#### PR Classification
This PR is a security fix addressing vulnerabilities in temporary folder creation on Linux.

#### PR Summary
The PR revises the MSBuild temporary folder creation by replacing custom mkdir/chmod logic with a secure API call to Directory.CreateTempSubdirectory on Linux, mitigating risks of malicious folder pre-creation. It also bumps the package version.
- `src/Shared/TempFileUtilities.cs`: Replaces custom Linux temp folder creation logic with a call to Directory.CreateTempSubdirectory and adjusts the fallback branch.
- `src/Shared/TempFileUtilities.cs`: Removes the obsolete userRWX constant.
- `eng/Versions.props`: Updates the version prefix from 17.12.49 to 17.12.50.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #2541147
@JanProvaznik JanProvaznik requested a review from a team as a code owner October 15, 2025 12:37
Copilot AI review requested due to automatic review settings October 15, 2025 12:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR merges tag v17.12.50 into the vs17.12 branch, updating the version number and refactoring temporary file directory creation on Linux to use built-in .NET functionality.

Key Changes:

  • Version bump from 17.12.49 to 17.12.50
  • Simplified Linux temp folder creation by replacing custom native calls with Directory.CreateTempSubdirectory()
  • Removed complex security checks and fallback logic that are now handled by the framework

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/Versions.props Updates version prefix from 17.12.49 to 17.12.50
src/Shared/TempFileUtilities.cs Simplifies temp directory creation on Linux using framework API instead of manual native calls

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.

4 participants