tools/zip: add missing start_disk field for zip64 extension

it is not optional, even though we give the size explicitely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-03-15 12:21:16 +01:00 committed by Thomas Lamprecht
parent cded320e92
commit 7c1666289d
1 changed files with 3 additions and 1 deletions

View File

@ -80,6 +80,7 @@ struct Zip64FieldWithOffset {
uncompressed_size: u64,
compressed_size: u64,
offset: u64,
start_disk: u32,
}
#[derive(Endian)]
@ -334,10 +335,11 @@ impl ZipEntry {
&mut buf,
Zip64FieldWithOffset {
field_type: 1,
field_size: 3 * 8,
field_size: 3 * 8 + 4,
uncompressed_size: self.uncompressed_size,
compressed_size: self.compressed_size,
offset: self.offset,
start_disk: 0,
},
)
.await?;