aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 11:34:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-22 15:41:33 +0200
commite837a0dbbebf4229306df98fe9ee3b9bb30630c4 (patch)
tree962466ec0a75f0afa3abc27ca22379b9a872c531
parent0ec0fac0459a0607867fec8943cfbef1e24d5d5a (diff)
downloadbusybox-w32-e837a0dbbebf4229306df98fe9ee3b9bb30630c4.tar.gz
busybox-w32-e837a0dbbebf4229306df98fe9ee3b9bb30630c4.tar.bz2
busybox-w32-e837a0dbbebf4229306df98fe9ee3b9bb30630c4.zip
libarchive: fix build failure on NOMMU systems
In the old code fd was an argument, now we need to get the file descriptor from the xstate structure. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libarchive/open_transformer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c
index 290dd130f..e81a81072 100644
--- a/archival/libarchive/open_transformer.c
+++ b/archival/libarchive/open_transformer.c
@@ -234,7 +234,7 @@ static void fork_transformer_and_free(transformer_state_t *xstate)
234 * an external unzipper that wants 234 * an external unzipper that wants
235 * file position at the start of the file. 235 * file position at the start of the file.
236 */ 236 */
237 xlseek(fd, - xstate->signature_skipped, SEEK_CUR); 237 xlseek(xstate->src_fd, - xstate->signature_skipped, SEEK_CUR);
238 xstate->signature_skipped = 0; 238 xstate->signature_skipped = 0;
239 fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog); 239 fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog);
240# endif 240# endif