-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Extract symlinks into symlinks on Unix and Windows, and fix a bu…
…g that affected making directories writable on MacOS
- Loading branch information
1 parent
be8cb43
commit 8715d93
Showing
2 changed files
with
44 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
use tempdir::TempDir; | ||
Check failure on line 1 in tests/repro_old423.rs GitHub Actions / style_and_docs (--no-default-features)
Check failure on line 1 in tests/repro_old423.rs GitHub Actions / Build and test --no-default-features: macOS-latest, msrv
Check failure on line 1 in tests/repro_old423.rs GitHub Actions / Build and test --no-default-features: macOS-latest, msrv
|
||
|
||
#[cfg(all(unix, feature = "_deflate-any"))] | ||
#[test] | ||
fn repro_old423() -> zip::result::ZipResult<()> { | ||
use std::env::temp_dir; | ||
use std::io; | ||
use zip::ZipArchive; | ||
|
||
let mut v = Vec::new(); | ||
v.extend_from_slice(include_bytes!("data/lin-ub_iwd-v11.zip")); | ||
let mut archive = ZipArchive::new(io::Cursor::new(v)).expect("couldn't open test zip file"); | ||
archive.extract(temp_dir()) | ||
archive.extract(TempDir::new("repro_old423")?) | ||
} |