Skip to content

Commit 5a24757

Browse files
authored
TarEntry: small fix-up. (#88118)
1 parent 7fc7e3c commit 5a24757

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Formats.Tar/src/System/Formats/Tar

1 file changed

+1
-1
lines changed

src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ internal Task ExtractRelativeToDirectoryAsync(string destinationDirectoryPath, b
333333
string name = ArchivingUtils.SanitizeEntryFilePath(Name, preserveDriveRoot: true);
334334
string? fileDestinationPath = GetFullDestinationPath(
335335
destinationDirectoryPath,
336-
Path.IsPathFullyQualified(name) ? name : Path.Join(Path.GetDirectoryName(destinationDirectoryPath), name));
336+
Path.IsPathFullyQualified(name) ? name : Path.Join(destinationDirectoryPath, name));
337337
if (fileDestinationPath == null)
338338
{
339339
throw new IOException(SR.Format(SR.TarExtractingResultsFileOutside, name, destinationDirectoryPath));

0 commit comments

Comments
 (0)