-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix prefix writing on TarHeaderWrite #75350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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.