diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-26 13:43:06 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-26 13:43:06 +0200 |
| commit | cc71f79c1e5905992f4ba5cd6fe3466fe276737d (patch) | |
| tree | 618d27efb36ff039bdfcbbfbfaf199ca2482ae14 | |
| parent | a4ed2c45b905057108e41aceda10c8b7976534ed (diff) | |
| download | busybox-w32-cc71f79c1e5905992f4ba5cd6fe3466fe276737d.tar.gz busybox-w32-cc71f79c1e5905992f4ba5cd6fe3466fe276737d.tar.bz2 busybox-w32-cc71f79c1e5905992f4ba5cd6fe3466fe276737d.zip | |
libarchive: treat one "FIXME: avoid seek", take 2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | archival/libarchive/open_transformer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c index 97bcc32f0..775bb580d 100644 --- a/archival/libarchive/open_transformer.c +++ b/archival/libarchive/open_transformer.c | |||
| @@ -352,13 +352,13 @@ void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_ | |||
| 352 | * read(4, "LF\2\1\1\0\0\0\0"... | 352 | * read(4, "LF\2\1\1\0\0\0\0"... |
| 353 | * ...and we avoided seeking on the fd! :) | 353 | * ...and we avoided seeking on the fd! :) |
| 354 | */ | 354 | */ |
| 355 | xstate->signature_skipped = 0; | ||
| 356 | image = xmalloc_read_with_initial_buf( | 355 | image = xmalloc_read_with_initial_buf( |
| 357 | xstate->src_fd, | 356 | xstate->src_fd, |
| 358 | maxsz_p, | 357 | maxsz_p, |
| 359 | xmemdup(&xstate->magic, xstate->signature_skipped), | 358 | xmemdup(&xstate->magic, xstate->signature_skipped), |
| 360 | xstate->signature_skipped | 359 | xstate->signature_skipped |
| 361 | ); | 360 | ); |
| 361 | xstate->signature_skipped = 0; | ||
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | if (!image) | 364 | if (!image) |
