Skip to content

Don't set permissions of extracted zip files when there are none

Jakub Staroń requested to merge js/ark:0perms into master

Some zip implementations like .NET stdlib don't preserve unix permissions (at least by default) resulting in zip files with mode 0.
So instead of making files that can't be opened by anyone, this PR just doesn't change the permissions from default when attributes are 0 (which is not the same as 000 mode because attributes also should contain the file type)

Merge request reports