-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Implement Tar APIs #67883
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
Merged
Merged
Implement Tar APIs #67883
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
e9fbcc9
Implement Tar APIs
carlossanlop 0731cb2
Address some comment suggestions.
carlossanlop 8f1f1af
Add SystemFormatsTarTestData package dependency entries and versions.
carlossanlop 10df463
Merge the major and minor p/invokes into a single one.
carlossanlop da4af67
Address exception and nullability suggestions.
carlossanlop 8710ceb
Adjust tests for the latest suggestions.
carlossanlop 76e484c
Document elevation requirement to extract device files on Unix.
carlossanlop c9c4d85
Add tests to verify extraction without elevation throws for device fi…
carlossanlop e0dafda
Add separate expected mode for special files from assets (644).
carlossanlop 5b8392b
Bump assets version to one with the fix
carlossanlop a16d4d9
Fix bugs and add tests for: timestamp conversion, extended attributes…
carlossanlop 7ca674e
Validate entry.Name chars before extracting
carlossanlop 560b789
Remove some minor todo comments
carlossanlop b3e5988
Add missing numeric value for PAL_S_IFCHR and its static assert
carlossanlop c22a8e7
Bug fixes:
carlossanlop d3e4f31
Bug fix: GNU can have two different metadata entries in a row if the …
carlossanlop 23caa17
Add test to verify entry with subdir segments gets extracted by TarFi…
carlossanlop e0b0442
Rename UnknownFormat resource string to TarInvalidFormat, include for…
carlossanlop b682576
Bug fixes:
carlossanlop 9fd01c3
Embed paths to exception message string when extracting file to diffe…
carlossanlop 7b0d8c3
Bug fix: WriteEntry from file on Windows failing with V7 due to incom…
carlossanlop f1d9b7b
Bug fixes:
carlossanlop 0980fbd
Use HAVE* in pal_io.c to detect library where makedev is available. D…
carlossanlop a28f3e5
Remove unnecessary TargetPlatformIdentifier override in src csproj.
carlossanlop 7f2e516
Small refactor of VerifyOverwriteFileIsPossible
carlossanlop 3f71b60
Remove parameter nullchecks.
carlossanlop cb855ed
Remove test method for attaching debugger.
carlossanlop dd40447
Remove devmajor and devminor duplicate todo message
carlossanlop 9a28f12
Remove unused datetime method
carlossanlop 40097c6
TMP exception with failed timestamp info
carlossanlop b1e8dfc
Remove failing device major/minor checks for now
carlossanlop c11e434
add FieldLocations static class, with position of first byte of each …
carlossanlop 255ec96
Use InvariantCulture when converting the utf8 string to a double.
carlossanlop 8ae7788
Copying file used by ExtractToDirectory test that throws, so it doesn…
carlossanlop d3cbdd2
Remove unused test method that opens and returns a filestream. We don…
carlossanlop 6b5d078
Use a single rented buffer to read a whole header record. Convert rel…
carlossanlop 19eb98d
Use ArrayPool for writing.
carlossanlop 69ca3e7
Fix upper bound of DeviceMajor and DeviceMinor.
carlossanlop b1a2d5a
Remove async APIs from ref, comment them in src.
carlossanlop fb644dd
Add issue to TODO comments
carlossanlop cd40d62
Remove unused methods.
carlossanlop 0ee2c33
Add InvariantCulture to double.ToString conversions.
carlossanlop 58a3476
Fix test parsing a double, ensure it uses invariant culture.
carlossanlop fc0e568
More tests parsing a double, ensure invariant culture comparison.
carlossanlop 5d81577
Verify link targets when extracting to directory. Disallow extracting…
carlossanlop a52dfe4
Avoid advancing stream anymore if end markers were found and GetNextE…
carlossanlop b227fa9
Add test that verifies stream is not advanced anymore after reading t…
carlossanlop 5745b9f
Fix bug preventing correct generation of full path for extraction. Ad…
carlossanlop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use HAVE* in pal_io.c to detect library where makedev is available. D…
…o explicit casts to prevent build failures in wasm. GetDeviceFiles p/invoke now returns int in case of error.
- Loading branch information
commit 0980fbd6ccbf52378f3ac2006a6864413ae88c7f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: make
devargument type match type ofFileStatus.Dev. Either useulongorlongfor both.