wok-6.x diff busybox/stuff/busybox-1.23-zmodules.u @ rev 19350

Down busybox (1.23.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 24 18:01:03 2016 +0200 (2016-07-24)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.23-zmodules.u	Sun Jul 24 18:01:03 2016 +0200
     1.3 @@ -0,0 +1,26 @@
     1.4 +Add LZMA_DEFAULT_MAGIC support
     1.5 +--- busybox-1.23/archival/libarchive/open_transformer.c
     1.6 ++++ busybox-1.23/archival/libarchive/open_transformer.c
     1.7 +@@ -178,6 +178,22 @@
     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 ++		xstate->xformer = unpack_lzma_stream;
    1.23 ++		USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";)
    1.24 ++		goto found_magic;
    1.25 ++	}
    1.26 ++#endif
    1.27 + 	if (ENABLE_FEATURE_SEAMLESS_GZ
    1.28 + 	 && magic.b16[0] == GZIP_MAGIC
    1.29 + 	) {