Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jozkee
Copy link
Member

@jozkee jozkee commented Sep 9, 2022

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.

@ghost ghost added the area-System.IO label Sep 9, 2022
@ghost ghost assigned jozkee Sep 9, 2022
@ghost
Copy link

ghost commented Sep 9, 2022

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: Jozkee
Assignees: -
Labels:

area-System.IO

Milestone: -

@ghost
Copy link

ghost commented Sep 9, 2022

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: Jozkee
Assignees: Jozkee
Labels:

area-System.IO

Milestone: -

Comment on lines 305 to 307
// 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)]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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

@jozkee jozkee merged commit d736df6 into dotnet:main Sep 9, 2022
@jozkee jozkee deleted the tar_prefix branch September 9, 2022 21:16
@jozkee
Copy link
Member Author

jozkee commented Sep 9, 2022

/backport to release/7.0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2022

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3025402757

@ghost ghost locked as resolved and limited conversation to collaborators Oct 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants