Skip to content

Conversation

jrwats
Copy link
Contributor

@jrwats jrwats commented Apr 2, 2022

An archive with preserve_mtime = true should match the behavior of tar -vpxf ...

Addresses: #288

@@ -792,6 +792,10 @@ fn unpack_links() {

let md = t!(fs::symlink_metadata(td.path().join("lnk")));
assert!(md.file_type().is_symlink());

let mtime = FileTime::from_last_modification_time(&md);
assert_eq!(mtime.unix_seconds(), 1448291033);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously this would have been "now"

@alexcrichton alexcrichton merged commit f4f439c into alexcrichton:master Apr 4, 2022
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Aug 10, 2023
Summary:
Update includes [alexcrichton/tar-rs#289], so we can unfork.

[alexcrichton/tar-rs#289]: alexcrichton/tar-rs#289

Reviewed By: diliop, shayne-fletcher

Differential Revision: D48230634

fbshipit-source-id: 2c3ff2ff01c8857f3f4e2e06b2688f739bcedb2c
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Aug 10, 2023
Summary:
Update includes [alexcrichton/tar-rs#289], so we can unfork.

[alexcrichton/tar-rs#289]: alexcrichton/tar-rs#289

Reviewed By: diliop, shayne-fletcher

Differential Revision: D48230634

fbshipit-source-id: 2c3ff2ff01c8857f3f4e2e06b2688f739bcedb2c
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Aug 10, 2023
Summary:
Update includes [alexcrichton/tar-rs#289], so we can unfork.

[alexcrichton/tar-rs#289]: alexcrichton/tar-rs#289

Reviewed By: diliop, shayne-fletcher

Differential Revision: D48230634

fbshipit-source-id: 2c3ff2ff01c8857f3f4e2e06b2688f739bcedb2c
facebook-github-bot pushed a commit to facebookincubator/below that referenced this pull request Aug 10, 2023
Summary:
Update includes [alexcrichton/tar-rs#289], so we can unfork.

[alexcrichton/tar-rs#289]: alexcrichton/tar-rs#289

Reviewed By: diliop, shayne-fletcher

Differential Revision: D48230634

fbshipit-source-id: 2c3ff2ff01c8857f3f4e2e06b2688f739bcedb2c
charliermarsh added a commit to astral-sh/tokio-tar that referenced this pull request Feb 5, 2025
## Summary

Ports alexcrichton/tar-rs#289 to `async-tar`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants