(magic): Add an entry for new lzma format. Proposed by Lasse Collin

This commit is contained in:
Sergey Poznyakoff
2007-10-17 09:11:08 +00:00
parent 00bb0d8f5c
commit c30a794679

View File

@@ -204,7 +204,8 @@ enum compress_type {
ct_none, ct_none,
ct_compress, ct_compress,
ct_gzip, ct_gzip,
ct_bzip2 ct_bzip2,
ct_lzma
}; };
struct zip_magic struct zip_magic
@@ -221,6 +222,7 @@ static struct zip_magic const magic[] = {
{ ct_compress, 2, "\037\235", "compress", "-Z" }, { ct_compress, 2, "\037\235", "compress", "-Z" },
{ ct_gzip, 2, "\037\213", "gzip", "-z" }, { ct_gzip, 2, "\037\213", "gzip", "-z" },
{ ct_bzip2, 3, "BZh", "bzip2", "-j" }, { ct_bzip2, 3, "BZh", "bzip2", "-j" },
{ ct_lzma, 6, "\xFFLZMA", "lzma", "-a" }, /* FIXME: ???? */
}; };
#define NMAGIC (sizeof(magic)/sizeof(magic[0])) #define NMAGIC (sizeof(magic)/sizeof(magic[0]))