wok-6.x rev 17550
busybox: fix zcat for lzma files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 29 16:54:25 2015 +0100 (2015-01-29) |
parents | 46a4ae996aa7 |
children | 40f9f468d1fd |
files | busybox/stuff/busybox-1.23-zmodules.u |
line diff
1.1 --- a/busybox/stuff/busybox-1.23-zmodules.u Thu Jan 29 15:49:38 2015 +0100 1.2 +++ b/busybox/stuff/busybox-1.23-zmodules.u Thu Jan 29 16:54:25 2015 +0100 1.3 @@ -1,7 +1,7 @@ 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,21 @@ 1.8 +@@ -178,6 +178,22 @@ 1.9 /* .gz and .bz2 both have 2-byte signature, and their 1.10 * unpack_XXX_stream wants this header skipped. */ 1.11 xread(fd, magic.b16, sizeof(magic.b16[0])); 1.12 @@ -15,6 +15,7 @@ 1.13 + if (ENABLE_FEATURE_SEAMLESS_LZMA 1.14 + && magic.b16[0] == LZMA_DEFAULT_MAGIC 1.15 + ) { 1.16 ++ xlseek(fd, offset, SEEK_CUR); 1.17 + xstate->xformer = unpack_lzma_stream; 1.18 + USE_FOR_NOMMU(xstate->xformer_prog = "unlzma";) 1.19 + goto found_magic;