2006-01-11 Robert Millan * src/buffer.c: Detect and extract p7zip. diff -ur tar.old/src/buffer.c tar/src/buffer.c --- tar.old/src/buffer.c 2005-12-09 11:04:26.000000000 +0100 +++ tar/src/buffer.c 2005-12-14 12:00:08.988175000 +0100 @@ -181,7 +181,8 @@ ct_none, ct_compress, ct_gzip, - ct_bzip2 + ct_bzip2, + ct_p7zip }; struct zip_magic @@ -198,6 +199,7 @@ { ct_compress, 2, "\037\235", "compress", "-Z" }, { ct_gzip, 2, "\037\213", "gzip", "-z" }, { ct_bzip2, 3, "BZh", "bzip2", "-j" }, + { ct_p7zip, 6, "7z\274\257\047\034", "p7zip", "--use-compress-program=p7zip" }, }; #define NMAGIC (sizeof(magic)/sizeof(magic[0]))