-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for hard links: extract, tree_hash, rewrite
This adds support for hard links, including: - extracting them by copying the linked file (no hard link created) - tree hashing them as they are extracted - rewriting by duplicating the linked file This only supports hard links whose target is a plain file that has already been seen in the tarball that is being processed. You cannot have a hard link that appears before the file that is linked. If the target of a hard link is overwritten later, the link copies the current version of the file at the time of extraction. Tree hashing and rewrite are both consistent with this behavior. It is not supported to extract hard links where the link involves symlinks, even if the link refers to a path that would be a file — the target must be a plain file. Close #101.
- Loading branch information
1 parent
ef680d3
commit 691ece7
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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