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>
This commit is contained in:
parent
0ec0fac045
commit
e837a0dbbe
@ -234,7 +234,7 @@ static void fork_transformer_and_free(transformer_state_t *xstate)
|
|||||||
* an external unzipper that wants
|
* an external unzipper that wants
|
||||||
* file position at the start of the file.
|
* 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;
|
xstate->signature_skipped = 0;
|
||||||
fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog);
|
fork_transformer_with_sig(xstate->src_fd, xstate->xformer, xstate->xformer_prog);
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user