summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 290dd13..e81a810 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)
* an external unzipper that wants
* file position at the start of the file.
*/
- xlseek(fd, - xstate->signature_skipped, SEEK_CUR);
+ xlseek(xstate->src_fd, - xstate->signature_skipped, SEEK_CUR);
xstate->signature_skipped = 0;
fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog);
# endif