Set made-by to a value with an upper byte of 0

With the old value, unzip would set all permissions to 000
This commit is contained in:
Mathijs van de Nes 2014-09-11 14:01:42 +02:00
parent 649f1f20b2
commit 453c6a8ce1

View file

@ -105,7 +105,7 @@ pub fn write_local_file_header<T: Writer>(writer: &mut T, file: &ZipFile) -> IoR
pub fn write_central_directory_header<T: Writer>(writer: &mut T, file: &ZipFile) -> IoResult<()>
{
try!(writer.write_le_u32(CENTRAL_DIRECTORY_HEADER_SIGNATURE));
try!(writer.write_le_u16(1337));
try!(writer.write_le_u16(0x00FF));
try!(writer.write_le_u16(20));
let flag = if file.encrypted { 1 } else { 0 };
try!(writer.write_le_u16(flag));