zip-writer: Write size and CRC in local directory when possible.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 4 Sep 2014 04:03:06 +0000 (21:03 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 4 Sep 2014 04:03:41 +0000 (21:03 -0700)
commit230091eca1a2f20277e2aac37a223084925ca567
tree0b7ca01ce07829420d3f0c54126ec3ee8ce904df
parentde03eaac4eaa1d42d7196471f22c526223d225a0
zip-writer: Write size and CRC in local directory when possible.

Google Drive rejects ODT files as corrupted unless their size and CRC are
in local file headers, even though the zip file specification says that it
is OK for them to follow the file data.  Thus, this commit changes the
zip writer to satisfy Google unless the output file is not seekable.
src/libpspp/zip-writer.c