Skip to content

Commit 9d17d9c

Browse files
committed
Throw IOException for all other reparse points.
1 parent 53e2ad8 commit 9d17d9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarWriter.Windows.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ private TarEntry ConstructEntryForWriting(string fullPath, string entryName, Fil
3434
}
3535
else
3636
{
37-
// Treat any other reparse point as regular file
38-
entryType = TarHelpers.GetRegularFileEntryTypeForFormat(Format);
37+
// All other reparse points are not supported since they cannot be
38+
// represented in a tar file using the existing entry types.
39+
throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath));
3940
}
4041
}
4142
else if (isDirectory)

0 commit comments

Comments
 (0)