Repository navigation
Fix prefix writing on TarHeaderWrite - #75350
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsThis PR takes the fix from #75023 but add tests that don't use the tar tool which is currently hard to get right on all CI configurations.
|
|
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsThis PR takes the fix from #75023 but add tests that don't use the tar tool which is currently hard to get right on all CI configurations.
|
| // On reading, ustar just combines prefix(155) + '/' + name(100), which may be wrong but that's how it currently is. | ||
| // On writing, it writes the first 100 chars of entryName on name and the next 155 on prefix, so it is flipping the name+prefix on reading. | ||
| //[InlineData(TarEntryFormat.Ustar)] |
There was a problem hiding this comment.
| // On reading, ustar just combines prefix(155) + '/' + name(100), which may be wrong but that's how it currently is. | |
| // On writing, it writes the first 100 chars of entryName on name and the next 155 on prefix, so it is flipping the name+prefix on reading. | |
| //[InlineData(TarEntryFormat.Ustar)] | |
| // [InlineData(TarEntryFormat.Ustar)] https://github.com/dotnet/runtime/issues/75360 |
|
/backport to release/7.0 |
|
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3025402757 |
This PR takes the fix from #75023 but add tests that don't use the tar tool which is currently hard to get right on all CI configurations.