Skip to content
  • Jakub Staroń's avatar
    Don't set permissions of extracted zip files when there are none · cb74426e
    Jakub Staroń authored and Albert Astals Cid's avatar Albert Astals Cid committed
    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)
    cb74426e