Skip to content
Snippets Groups Projects
  1. Aug 08, 2024
  2. Aug 07, 2024
  3. Aug 06, 2024
  4. Aug 02, 2024
  5. Jul 24, 2024
  6. Jul 21, 2024
  7. Jul 09, 2024
  8. May 31, 2024
    • Christian Marangi's avatar
      tar: add support for GNU longnames tar extension entry · 6052bfef
      Christian Marangi authored and Timo Teräs's avatar Timo Teräs committed
      
      There is currently a fundamental problem with how tar are handled
      insternally for scriptdb usage.
      
      We totally lack any support and handling for filename in scriptdb that
      are longer than 99char. This cause the filename to be cut and have
      situation with file ending with:
      - kernel-6.6.30~01f651a1bd5c5592d7cf5a98209bdce4-r1.X121290490411c8c2cf47e3
      - kernel-6.6.30~01f651a1bd5c5592d7cf5a98209bdce4-r1.X121290490411c8c2cf47e308d95f12d65d011a391.post-instal
      - kernel-6.6.30~01f651a1bd5c5592d7cf5a98209bdce4-r1.X121290490411c8c2cf47e308d95f12d65d011a391.post-i
      - kernel-6.6.30~01f651a1bd5c5592d7cf5a98209bdce4-r1.X121290490411c8c2cf47e308d95f12d65
      
      This is caused by the fact that POSIX ustar support up to 99char. The
      prefix value can only be used to path but can't be used for filename
      hence that is not a valuable solution.
      
      To fix this introduce support to apk_tar_write_entry for GNU longnames
      extension header. This is already supported by apk_tar_parse but we
      couldn't actually add the special header.
      
      With this fix long filename are correctly handled and the cut problem is
      solved.
      
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      6052bfef
    • Christian Marangi's avatar
      tar: generalize tar header setup · 1d8ab5b4
      Christian Marangi authored and Timo Teräs's avatar Timo Teräs committed
      
      Generalize tar header setup in a dedicated function in preparation for
      support of additional header for longnames and PAX extension headers.
      
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      1d8ab5b4
    • Christian Marangi's avatar
      tar: generalize apk_tar_write_padding size handling · 8d001104
      Christian Marangi authored and Timo Teräs's avatar Timo Teräs committed
      
      Generalize apk_tar_write_padding size handling in preparation to make
      use of it also in other context where apk_file_info is not used.
      
      The function just required the size of data written hence we can just
      pass that value directly instead of a pointer to the apk_file_info
      struct.
      
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      8d001104
  9. May 29, 2024
    • Christian Marangi's avatar
      database: always use CSUM HEX for scriptdb tar entry · efedbd92
      Christian Marangi authored and Timo Teräs's avatar Timo Teräs committed
      
      Always use CSUM in HEX for scriptdb tar entry.
      
      Currently we use HEX for MD5 CSUM and base64 for SHA1 CSUM. This is
      problematic for the scripts.tar as in base64 the "/" char is allowed.
      This makes the tar think the file is placed in a dedicated directory
      causing inconsistent files in scripts.tar making it problematic if
      someone wants to handle scripts manually by accessing the file in the
      .tar
      
      Fix this by introducing apk_blob_push_csum_hex that always use HEX for
      CSUM blob.
      
      Pulling CSUM in HEX format is already supported and it's done by using
      the X prefix instead of the current Q, hence this won't cause any
      regression since both format are supported by the apk_blob_pull_csum
      function.
      
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      efedbd92
  10. May 24, 2024
  11. May 21, 2024
    • Ariadne Conill's avatar
      libfetch: remove support for FTP · 41ea8a08
      Ariadne Conill authored
      
      As discussed in #10749, I suggested that we remove FTP support to reduce possible attack surface
      as there are no Alpine mirrors which use FTP.
      
      There are also no known mirrors of any other apk-using distribution which use FTP, so I believe
      we are safe to remove support for FTP-based mirrors in apk-tools 3.
      
      Signed-off-by: default avatarAriadne Conill <ariadne@dereferenced.org>
      41ea8a08
  12. May 19, 2024
  13. May 18, 2024
  14. May 14, 2024
  15. May 10, 2024
  16. May 06, 2024
  17. Apr 15, 2024
  18. Apr 10, 2024
  19. Apr 09, 2024
  20. Apr 05, 2024
  21. Apr 01, 2024
    • Timo Teräs's avatar
      io: fix gunzip mpart handling regression · b7a7ea72
      Timo Teräs authored
      The _DATA callback needs to be deferred until extracted data is
      handled for the state machine to work correctly for identity data
      generation.
      
      fixes regresion in "apk index"
      
      fixes 9855169e "io: simplify mpart and error handling"
      b7a7ea72
Loading