• Rustmilian
      link
      English
      26
      edit-2
      10 months ago

      No because the zip archive retains permissions of the contained files.

      • LiveLM
        link
        fedilink
        English
        3310 months ago

        Hm, maybe there should be an option to always disable the executable permission when extracting

        • Rustmilian
          link
          English
          310 months ago

          That’s perhaps possible, but likely would have to be implemented in each achieving tools individually.

        • Rustmilian
          link
          English
          2
          edit-2
          10 months ago

          All archive formats do it, afaik.

          • @[email protected]
            link
            fedilink
            110 months ago

            But i’m sure there was an issue somewhile ago, because zip only preserves Windows permissions…

            • Rustmilian
              link
              English
              2
              edit-2
              10 months ago

              There’s a bunch of zip implementations(Info-Zip, Gzip, 7-Zip, PKZip, Pigz, etc.), so perhaps an older version of one of the implementations didn’t support preserving the Linux executable permission in the past.

    • @[email protected]
      link
      fedilink
      English
      2310 months ago

      It never occurred to me before reading this comment that there actually is a use case for the execute permission. To me it was always just this annoying thing I have to do whenever I download an executable which I didn’t have to do on Windows.

      • @AProfessional
        link
        English
        1110 months ago

        Fun fact, Windows has the same permission it just defaults to enabled.