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:
parent
cded320e92
commit
7c1666289d
|
@ -80,6 +80,7 @@ struct Zip64FieldWithOffset {
|
||||||
uncompressed_size: u64,
|
uncompressed_size: u64,
|
||||||
compressed_size: u64,
|
compressed_size: u64,
|
||||||
offset: u64,
|
offset: u64,
|
||||||
|
start_disk: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Endian)]
|
#[derive(Endian)]
|
||||||
|
@ -334,10 +335,11 @@ impl ZipEntry {
|
||||||
&mut buf,
|
&mut buf,
|
||||||
Zip64FieldWithOffset {
|
Zip64FieldWithOffset {
|
||||||
field_type: 1,
|
field_type: 1,
|
||||||
field_size: 3 * 8,
|
field_size: 3 * 8 + 4,
|
||||||
uncompressed_size: self.uncompressed_size,
|
uncompressed_size: self.uncompressed_size,
|
||||||
compressed_size: self.compressed_size,
|
compressed_size: self.compressed_size,
|
||||||
offset: self.offset,
|
offset: self.offset,
|
||||||
|
start_disk: 0,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Reference in New Issue