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