# HG changeset patch # User Pascal Bellard # Date 1335611062 -7200 # Node ID b6347c31b31952a2168f4fd33c42901f3d249b72 # Parent c359aaa7c2a8e36a0710d7da1d5d42006d6f0c96 busybox: fix lzma'ed modules diff -r c359aaa7c2a8 -r b6347c31b319 busybox/stuff/busybox-1.20-zmodules.u --- a/busybox/stuff/busybox-1.20-zmodules.u Fri Apr 27 15:57:34 2012 +0200 +++ b/busybox/stuff/busybox-1.20-zmodules.u Sat Apr 28 13:04:22 2012 +0200 @@ -15,9 +15,9 @@ + if (ENABLE_FEATURE_SEAMLESS_LZMA + && magic.b16[0] == LZMA_DEFAULT_MAGIC + ) { -+ USE_FOR_MMU(xformer = unpack_lzma_stream;) -+ USE_FOR_NOMMU(xformer_prog = "unlzma";) -+ goto found_magic; ++ xlseek(fd, offset, SEEK_CUR); ++ open_transformer_with_sig(fd, unpack_lzma_stream, "unlzma"); ++ return 0; + } +#endif if (ENABLE_FEATURE_SEAMLESS_GZ diff -r c359aaa7c2a8 -r b6347c31b319 runcom/stuff/runcom.c --- a/runcom/stuff/runcom.c Fri Apr 27 15:57:34 2012 +0200 +++ b/runcom/stuff/runcom.c Sat Apr 28 13:04:22 2012 +0200 @@ -489,7 +489,7 @@ goto failed; } } - if (lseek(fd, first_sector, SEEK_CUR) >= 0 && + if (lseek(fd, first_sector, SEEK_SET) >= 0 && read(fd, buffer, sector_count) == sector_count) { r->eax &= ~0xff00; r->eflags &= ~CF_MASK;