Skip to content

Commit

Permalink
fix: Set archive directory size to zero.
Browse files Browse the repository at this point in the history
Fixes problem with extracting the custom "empty template".
  • Loading branch information
CodeMan99 committed Feb 19, 2024
1 parent 4d98abb commit 48d02b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ impl TemplateBuilder {
let create_directory_header = |path: &str| -> io::Result<Header> {
let mut header = Header::new_gnu();
header.set_entry_type(EntryType::Directory);
header.set_size(0);
header.set_path(path)?;
header.set_mtime(mtime);
header.set_mode(0o775);
Expand Down

0 comments on commit 48d02b7

Please sign in to comment.