projects
/
debian
/
tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00bb0d8
)
(magic): Add an entry for new lzma format. Proposed by Lasse Collin
author
Sergey Poznyakoff
<gray@gnu.org.ua>
Wed, 17 Oct 2007 09:11:08 +0000
(09:11 +0000)
committer
Sergey Poznyakoff
<gray@gnu.org.ua>
Wed, 17 Oct 2007 09:11:08 +0000
(09:11 +0000)
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index f99dcca1b2829bb978073d12657829fb5277df8b..75b4487a8ef2ef5c3064749b71b042ce8e23ca60 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-204,7
+204,8
@@
enum compress_type {
ct_none,
ct_compress,
ct_gzip,
- ct_bzip2
+ ct_bzip2,
+ ct_lzma
};
struct zip_magic
@@
-221,6
+222,7
@@
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", "-a" }, /* FIXME: ???? */
};
#define NMAGIC (sizeof(magic)/sizeof(magic[0]))