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:
parent
b34759251d
commit
7f2149489f
2 changed files with 49 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue