Skip to content

Commit dcf5e10

Browse files
committed
fix(tar): create translated files in temp
1 parent 8c0a169 commit dcf5e10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ICSharpCode.SharpZipLib/Core/PathUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static string DropPathRoot(string path)
3636
/// </summary>
3737
/// <param name="original">If specified, used as the base file name for the temporary file</param>
3838
/// <returns>Returns a temporary file name</returns>
39-
public static string GetTempFileName(string original)
39+
public static string GetTempFileName(string original = null)
4040
{
4141
string fileName;
4242
var tempPath = Path.GetTempPath();

src/ICSharpCode.SharpZipLib/Tar/TarArchive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ private void WriteEntryCore(TarEntry sourceEntry, bool recurse)
824824
{
825825
if (!IsBinary(entryFilename))
826826
{
827-
tempFileName = Path.GetRandomFileName();
827+
tempFileName = PathUtils.GetTempFileName();
828828

829829
using (StreamReader inStream = File.OpenText(entryFilename))
830830
{

0 commit comments

Comments
 (0)