Skip to content

Commit

Permalink
fix: use random file name for writing asciitrans tar entries
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel committed May 8, 2021
1 parent b852a74 commit 2e3e2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Tar/TarArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ private void WriteEntryCore(TarEntry sourceEntry, bool recurse)
{
if (!IsBinary(entryFilename))
{
tempFileName = Path.GetTempFileName();
tempFileName = Path.GetRandomFileName();

using (StreamReader inStream = File.OpenText(entryFilename))
{
Expand Down

0 comments on commit 2e3e2e8

Please sign in to comment.