~ted/snapcraft/status

Viewing all changes in revision 109.

  • Committer: Snappy Tarmac
  • Author(s): Loïc Minier
  • Date: 2015-07-24 16:21:07 UTC
  • mfrom: (105.1.2 no-separate-toplevel-dir)
  • Revision ID: snappy_tarmac-20150724162107-qm77h6s1qdxsvb01
Rework tarball unpack to use tarfile. New implementation deals properly with tarballs which ship all files under a common directory, but without an entry for this common directory. Also handles dangerous tarballs with pathes starting with / or ../. Adjust tests accordingly.

NB: this was found while trying to use the upstream tomcat tarball; toplevel parent dir didn't get stripped on unpack. by lool approved by mterry

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: