mrkkrp / zip

Efficient library for manipulating zip archives
Other
81 stars 27 forks source link

Set file permissions on unix platforms. #75

Closed qnikst closed 3 years ago

qnikst commented 3 years ago

This commit sets user permissions on the Linux platform as follows:

  1. in case if we add an existing file to the archive we add it's permissions
  2. if it's a new file generated from a bytestring or a stream we use 0600

This behaviour mimics zip utility.

Fixes #74

Unfortunately the amount of CPP got higher and I had to add a conditional dependency on unix.

qnikst commented 3 years ago

Fixed!

mrkkrp commented 3 years ago

Applied as fc1027caa6792701b240626ce47175ca56ff079f.