Skip to content

Commit

Permalink
On windows there can be problems with Tools that do not support Unico…
Browse files Browse the repository at this point in the history
…de, and Username containing Unicode chars.

#9229
  • Loading branch information
hknielsen committed Sep 19, 2023
1 parent 1b84c9b commit c760662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared/TempFileUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal static void ClearTempFileDirectory()
// For all native calls, directly check their return values to prevent bad actors from getting in between checking if a directory exists and returning it.
private static string CreateFolderUnderTemp()
{
string basePath = Path.Combine(Path.GetTempPath(), $"MSBuildTemp{Environment.UserName}");
string basePath = Path.Combine(Path.GetTempPath(), "MSBuildTemp");

if (NativeMethodsShared.IsLinux && NativeMethodsShared.mkdir(basePath, userRWX) != 0)
{
Expand Down

0 comments on commit c760662

Please sign in to comment.