wok-current annotate busybox/stuff/busybox-1.21-zmodules.u @ rev 15250

gst-python: remove wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 23 18:02:04 2013 +0000 (2013-09-23)
parents
children
rev   line source
pascal@13905 1 Add LZMA_DEFAULT_MAGIC support
pascal@13905 2 --- busybox-1.20/archival/libarchive/open_transformer.c.ORG
pascal@13905 3 +++ busybox-1.20/archival/libarchive/open_transformer.c
pascal@13905 4 @@ -126,6 +126,21 @@
pascal@13905 5 /* .gz and .bz2 both have 2-byte signature, and their
pascal@13905 6 * unpack_XXX_stream wants this header skipped. */
pascal@13905 7 xread(fd, magic.b16, sizeof(magic.b16[0]));
pascal@13905 8 +#if 1
pascal@13905 9 +// SliTaz uses .gz suffix for lzma'd kernel modules
pascal@13905 10 +#if BB_BIG_ENDIAN
pascal@13905 11 +#define LZMA_DEFAULT_MAGIC 0x5d00
pascal@13905 12 +#else
pascal@13905 13 +#define LZMA_DEFAULT_MAGIC 0x5d
pascal@13905 14 +#endif
pascal@13905 15 + if (ENABLE_FEATURE_SEAMLESS_LZMA
pascal@13905 16 + && magic.b16[0] == LZMA_DEFAULT_MAGIC
pascal@13905 17 + ) {
pascal@13905 18 + xlseek(fd, offset, SEEK_CUR);
pascal@13905 19 + open_transformer_with_sig(fd, unpack_lzma_stream, "unlzma");
pascal@13905 20 + return 0;
pascal@13905 21 + }
pascal@13905 22 +#endif
pascal@13905 23 if (ENABLE_FEATURE_SEAMLESS_GZ
pascal@13905 24 && magic.b16[0] == GZIP_MAGIC
pascal@13905 25 ) {