Package: tar Version: 1.15.1-2 Severity: wishlist Tags: patch upstream Hi!
Please, could you apply this patch to make tar auto-detect 7zipped tarballs? It adds the magic numbers in src/buffer.c so that you can do: tar -xf foo.tar.7z without having to specify an uncompressor manualy. This patch has already been sent to upstream. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-k7 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) -- no debconf information
diff -ur tar-1.15.1.old/src/buffer.c tar-1.15.1/src/buffer.c --- tar-1.15.1.old/src/buffer.c 2004-12-21 16:09:24.000000000 +0100 +++ tar-1.15.1/src/buffer.c 2005-12-14 12:07:28.000000000 +0100 @@ -153,7 +153,8 @@ ct_none, ct_compress, ct_gzip, - ct_bzip2 + ct_bzip2, + ct_p7zip }; struct zip_magic @@ -170,6 +171,7 @@ { ct_compress, "\037\235", 2, "compress", "-Z" }, { ct_gzip, "\037\213", 2, "gzip", "-z" }, { ct_bzip2, "BZh", 3, "bzip2", "-j" }, + { ct_p7zip, "7z\274\257\047\034", 6, "p7zip", "--use-compress-program=p7zip" }, }; #define NMAGIC (sizeof(magic)/sizeof(magic[0]))