# HG changeset patch # User Pascal Bellard # Date 1422546865 -3600 # Node ID 76ff15b5d3ea5c24781732bc52fb5b22714e8e5b # Parent 46a4ae996aa7ba313c8820dbdc552e60089d4983 busybox: fix zcat for lzma files diff -r 46a4ae996aa7 -r 76ff15b5d3ea busybox/stuff/busybox-1.23-zmodules.u --- a/busybox/stuff/busybox-1.23-zmodules.u Thu Jan 29 15:49:38 2015 +0100 +++ b/busybox/stuff/busybox-1.23-zmodules.u Thu Jan 29 16:54:25 2015 +0100 @@ -1,7 +1,7 @@ Add LZMA_DEFAULT_MAGIC support --- busybox-1.23/archival/libarchive/open_transformer.c +++ busybox-1.23/archival/libarchive/open_transformer.c -@@ -178,6 +178,21 @@ +@@ -178,6 +178,22 @@ /* .gz and .bz2 both have 2-byte signature, and their * unpack_XXX_stream wants this header skipped. */ xread(fd, magic.b16, sizeof(magic.b16[0])); @@ -15,6 +15,7 @@ + if (ENABLE_FEATURE_SEAMLESS_LZMA + && magic.b16[0] == LZMA_DEFAULT_MAGIC + ) { ++ xlseek(fd, offset, SEEK_CUR); + xstate->xformer = unpack_lzma_stream; + USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";) + goto found_magic;