Don't set permissions of extracted zip files when there are none
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) (cherry picked from commit cb74426e)
Please register or sign in to comment