You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/dotnet/sdk/blob/main/src/Common/PathUtilities.cs#L24 uses mkdir on linux and Directory.CreateDirectory on windows.
This leads to a behavior difference where some directory can not be created if TMPDIR is a path which doesn't exist on linux (it fails) and it passes on windows.
I propose to drop the linux specificity and keep using the Directory API + chmod after directory creation if 0700 perms are desired.
The text was updated successfully, but these errors were encountered:
One could perhaps use Directory.CreateDirectory(String, UnixFileMode) within #if NET7_0_OR_GREATER. I'm not sure whether PathUtilities.cs is built in any project that targets .NET Standard.
Hi,
https://github.com/dotnet/sdk/blob/main/src/Common/PathUtilities.cs#L24 uses
mkdir
on linux andDirectory.CreateDirectory
on windows.This leads to a behavior difference where some directory can not be created if
TMPDIR
is a path which doesn't exist on linux (it fails) and it passes on windows.I propose to drop the linux specificity and keep using the Directory API + chmod after directory creation if 0700 perms are desired.
The text was updated successfully, but these errors were encountered: