[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] libarchive: fix build failure on NOMMU systems
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2017-08-22 13:42:07
Message-ID: CAK1hOcP+6kgZGn-zieFuc1UsaDtPBmCQQ6h6kNcRcz9k7zi2tw () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks

On Tue, Aug 22, 2017 at 12:34 PM, Ron Yorston <rmy@pobox.com> wrote:
> 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>
> ---
>  archival/libarchive/open_transformer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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)
>          * 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
> --
> 2.13.5
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic