wok-current diff busybox/stuff/busybox-1.21-zmodules.u @ rev 14185
asterisk: remove wrong error trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 11 19:01:08 2013 +0100 (2013-03-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.21-zmodules.u Mon Mar 11 19:01:08 2013 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +Add LZMA_DEFAULT_MAGIC support 1.5 +--- busybox-1.20/archival/libarchive/open_transformer.c.ORG 1.6 ++++ busybox-1.20/archival/libarchive/open_transformer.c 1.7 +@@ -126,6 +126,21 @@ 1.8 + /* .gz and .bz2 both have 2-byte signature, and their 1.9 + * unpack_XXX_stream wants this header skipped. */ 1.10 + xread(fd, magic.b16, sizeof(magic.b16[0])); 1.11 ++#if 1 1.12 ++// SliTaz uses .gz suffix for lzma'd kernel modules 1.13 ++#if BB_BIG_ENDIAN 1.14 ++#define LZMA_DEFAULT_MAGIC 0x5d00 1.15 ++#else 1.16 ++#define LZMA_DEFAULT_MAGIC 0x5d 1.17 ++#endif 1.18 ++ if (ENABLE_FEATURE_SEAMLESS_LZMA 1.19 ++ && magic.b16[0] == LZMA_DEFAULT_MAGIC 1.20 ++ ) { 1.21 ++ xlseek(fd, offset, SEEK_CUR); 1.22 ++ open_transformer_with_sig(fd, unpack_lzma_stream, "unlzma"); 1.23 ++ return 0; 1.24 ++ } 1.25 ++#endif 1.26 + if (ENABLE_FEATURE_SEAMLESS_GZ 1.27 + && magic.b16[0] == GZIP_MAGIC 1.28 + ) {