rpm2cpio: handle bz2 too; code shrink
function old new delta skip_header 142 99 -43 rpm2cpio_main 321 183 -138 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-181) Total: -181 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
b34759251d
commit
7f2149489f
@ -336,7 +336,7 @@ int FAST_FUNC open_zipped(const char *fname)
|
||||
|| (ENABLE_FEATURE_SEAMLESS_BZ2 && strcmp(sfx, ".bz2") == 0)
|
||||
) {
|
||||
/* .gz and .bz2 both have 2-byte signature, and their
|
||||
* unpack_XXX_stream want this header skipped. */
|
||||
* unpack_XXX_stream wants this header skipped. */
|
||||
xread(fd, &magic, 2);
|
||||
#if ENABLE_FEATURE_SEAMLESS_GZ
|
||||
#if BB_MMU
|
||||
|
Reference in New Issue
Block a user