Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/archival/libarchive/decompress_uncompress.c

    r3232 r3621  
    7474
    7575IF_DESKTOP(long long) int FAST_FUNC
    76 unpack_Z_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd)
     76unpack_Z_stream(transformer_state_t *xstate)
    7777{
    7878    IF_DESKTOP(long long total_written = 0;)
     
    103103    int block_mode; /* = BLOCK_MODE; */
    104104
    105     if (check_signature16(aux, src_fd, COMPRESS_MAGIC))
     105    if (check_signature16(xstate, COMPRESS_MAGIC))
    106106        return -1;
    107107
     
    115115    /* xread isn't good here, we have to return - caller may want
    116116     * to do some cleanup (e.g. delete incomplete unpacked file etc) */
    117     if (full_read(src_fd, inbuf, 1) != 1) {
     117    if (full_read(xstate->src_fd, inbuf, 1) != 1) {
    118118        bb_error_msg("short read");
    119119        goto err;
     
    167167
    168168        if (insize < (int) (IBUFSIZ + 64) - IBUFSIZ) {
    169             rsize = safe_read(src_fd, inbuf + insize, IBUFSIZ);
     169            rsize = safe_read(xstate->src_fd, inbuf + insize, IBUFSIZ);
    170170            if (rsize < 0)
    171171                bb_error_msg_and_die(bb_msg_read_error);
     
    275275
    276276                        if (outpos >= OBUFSIZ) {
    277                             xwrite(dst_fd, outbuf, outpos);
     277                            xtransformer_write(xstate, outbuf, outpos);
    278278                            IF_DESKTOP(total_written += outpos;)
    279279                            outpos = 0;
     
    298298            oldcode = incode;
    299299        }
    300 
    301300    } while (rsize > 0);
    302301
    303302    if (outpos > 0) {
    304         xwrite(dst_fd, outbuf, outpos);
     303        xtransformer_write(xstate, outbuf, outpos);
    305304        IF_DESKTOP(total_written += outpos;)
    306305    }
Note: See TracChangeset for help on using the changeset viewer.