From bb23e87b2c4f8a664b0174a780ab9ab260606af6 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Thu, 21 Apr 2022 18:48:22 -0600 Subject: [PATCH] Allow sharing of input tar file for read --- .../System.Formats.Tar/src/System/Formats/Tar/TarFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarFile.cs b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarFile.cs index 5be30c85790fb9..c156edb9f1624a 100644 --- a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarFile.cs +++ b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarFile.cs @@ -175,7 +175,7 @@ public static void ExtractToDirectory(string sourceFileName, string destinationD Access = FileAccess.Read, BufferSize = 0x1000, Mode = FileMode.Open, - Share = FileShare.None + Share = FileShare.Read }; using FileStream archive = File.Open(sourceFileName, fileStreamOptions);