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:
parent
649f1f20b2
commit
453c6a8ce1
1 changed files with 1 additions and 1 deletions
|
@ -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<()>
|
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_u32(CENTRAL_DIRECTORY_HEADER_SIGNATURE));
|
||||||
try!(writer.write_le_u16(1337));
|
try!(writer.write_le_u16(0x00FF));
|
||||||
try!(writer.write_le_u16(20));
|
try!(writer.write_le_u16(20));
|
||||||
let flag = if file.encrypted { 1 } else { 0 };
|
let flag = if file.encrypted { 1 } else { 0 };
|
||||||
try!(writer.write_le_u16(flag));
|
try!(writer.write_le_u16(flag));
|
||||||
|
|
Loading…
Add table
Reference in a new issue