[backend/startup] Delete ASPNETCORE_TEMP writability test file on close
This commit is contained in:
parent
c335a44327
commit
26bb26c0da
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ public static class WebApplicationExtensions
|
|||
var tempPath = Environment.GetEnvironmentVariable("ASPNETCORE_TEMP") ?? Path.GetTempPath();
|
||||
try
|
||||
{
|
||||
await using var stream = File.OpenWrite(Path.Combine(tempPath, ".iceshrimp-test"));
|
||||
await using var stream = File.Create(Path.Combine(tempPath, ".iceshrimp-test"), 1, FileOptions.DeleteOnClose);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue