X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbuffer.c;h=a646202a8421323c88cb0ae5865230f89f8a6e05;hb=c10830a35ba2e0e86dc10c5ab9bbaf163d4c0b3a;hp=5f5457a95571e531a027179b511fdb0c41763d69;hpb=7a968d67c82c81ee3c33be4d2cf34da20425f298;p=chaz%2Ftar diff --git a/src/buffer.c b/src/buffer.c index 5f5457a..a646202 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -204,7 +204,8 @@ enum compress_type { ct_gzip, ct_bzip2, ct_lzma, - ct_lzop + ct_lzop, + ct_xz }; struct zip_magic @@ -222,8 +223,9 @@ static struct zip_magic const magic[] = { { ct_compress, 2, "\037\235", "compress", "-Z" }, { ct_gzip, 2, "\037\213", "gzip", "-z" }, { ct_bzip2, 3, "BZh", "bzip2", "-j" }, - { ct_lzma, 6, "\xFFLZMA", "lzma", "-J" }, /* FIXME: ???? */ + { ct_lzma, 6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */ { ct_lzop, 4, "\211LZO", "lzop", "--lzop" }, + { ct_xz, 6, "\0xFD7zXZ", "-J" }, }; #define NMAGIC (sizeof(magic)/sizeof(magic[0]))