Skip to content

Commit

Permalink
fix: Set archive directory size to zero. (#27)
Browse files Browse the repository at this point in the history
Fixes problem with extracting the custom "empty template".
  • Loading branch information
CodeMan99 authored Feb 19, 2024
1 parent 4d98abb commit 0c1a4c4
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 @@ -598,6 +598,7 @@ impl TemplateBuilder {
let mut header = Header::new_gnu();
header.set_entry_type(EntryType::Directory);
header.set_path(path)?;
header.set_size(0);
header.set_mtime(mtime);
header.set_mode(0o775);
header.set_uid(1000);
Expand Down

0 comments on commit 0c1a4c4

Please sign in to comment.