Skip to content

Commit

Permalink
fixup! unsquashfs: Extract with multiple threads
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Jul 19, 2023
1 parent c28f794 commit 7cffda2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bin/unsquashfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,6 @@ fn extract_all<'a, S: ParallelIterator<Item = &'a Node<SquashfsFileReader>>>(
InnerNode::Symlink(SquashfsSymlink { link }) => {
// create symlink
let link_display = link.display();
let filepath = Path::new(&args.dest).join(path);

// check if file exists
if !args.force && filepath.exists() {
println!("[-] failed, file already exists {}", filepath.display());
Expand Down Expand Up @@ -412,7 +410,6 @@ fn extract_all<'a, S: ParallelIterator<Item = &'a Node<SquashfsFileReader>>>(
}
InnerNode::Dir(SquashfsDir { .. }) => {
// create dir
let path = Path::new(&args.dest).join(path);
let _ = std::fs::create_dir(&path);

// These permissions are corrected later (user default permissions for now)
Expand Down

0 comments on commit 7cffda2

Please sign in to comment.