wok annotate busybox/stuff/busybox-1.22-zmodules.u @ rev 15734
Up busybox (1.22.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 01 19:39:18 2014 +0100 (2014-01-01) |
parents | |
children | a1084fda7f23 |
rev | line source |
---|---|
pascal@15734 | 1 Add LZMA_DEFAULT_MAGIC support |
pascal@15734 | 2 --- busybox-1.20/archival/libarchive/open_transformer.c.ORG |
pascal@15734 | 3 +++ busybox-1.20/archival/libarchive/open_transformer.c |
pascal@15734 | 4 @@ -126,6 +126,21 @@ |
pascal@15734 | 5 /* .gz and .bz2 both have 2-byte signature, and their |
pascal@15734 | 6 * unpack_XXX_stream wants this header skipped. */ |
pascal@15734 | 7 xread(fd, magic.b16, sizeof(magic.b16[0])); |
pascal@15734 | 8 +#if 1 |
pascal@15734 | 9 +// SliTaz uses .gz suffix for lzma'd kernel modules |
pascal@15734 | 10 +#if BB_BIG_ENDIAN |
pascal@15734 | 11 +#define LZMA_DEFAULT_MAGIC 0x5d00 |
pascal@15734 | 12 +#else |
pascal@15734 | 13 +#define LZMA_DEFAULT_MAGIC 0x5d |
pascal@15734 | 14 +#endif |
pascal@15734 | 15 + if (ENABLE_FEATURE_SEAMLESS_LZMA |
pascal@15734 | 16 + && magic.b16[0] == LZMA_DEFAULT_MAGIC |
pascal@15734 | 17 + ) { |
pascal@15734 | 18 + xlseek(fd, offset, SEEK_CUR); |
pascal@15734 | 19 + open_transformer_with_sig(fd, unpack_lzma_stream, "unlzma"); |
pascal@15734 | 20 + return 0; |
pascal@15734 | 21 + } |
pascal@15734 | 22 +#endif |
pascal@15734 | 23 if (ENABLE_FEATURE_SEAMLESS_GZ |
pascal@15734 | 24 && magic.b16[0] == GZIP_MAGIC |
pascal@15734 | 25 ) { |