mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-375282: Insert sanitised TARs into Temp folder
Avoids permission related exceptions Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
653d66cb10
commit
39b84bbcc5
@ -100,7 +100,7 @@ namespace XenAdmin.Actions
|
||||
outFilename = Path.GetRandomFileName();
|
||||
string outputDir = Path.Combine(_extractTempDir, Path.GetFileName(outFilename));
|
||||
|
||||
string sanitizedTar = Path.GetRandomFileName();
|
||||
string sanitizedTar = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
|
||||
TarSanitization.SanitizeTarForWindows(inputFile, sanitizedTar, CheckCancellation);
|
||||
|
||||
using (FileStream fs = File.OpenRead(sanitizedTar))
|
||||
|
Loading…
Reference in New Issue
Block a user