Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/archival/libarchive/decompress_uncompress.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- 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 74 74 75 75 IF_DESKTOP(long long) int FAST_FUNC 76 unpack_Z_stream(transformer_ aux_data_t *aux, int src_fd, int dst_fd)76 unpack_Z_stream(transformer_state_t *xstate) 77 77 { 78 78 IF_DESKTOP(long long total_written = 0;) … … 103 103 int block_mode; /* = BLOCK_MODE; */ 104 104 105 if (check_signature16( aux, src_fd, COMPRESS_MAGIC))105 if (check_signature16(xstate, COMPRESS_MAGIC)) 106 106 return -1; 107 107 … … 115 115 /* xread isn't good here, we have to return - caller may want 116 116 * 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) { 118 118 bb_error_msg("short read"); 119 119 goto err; … … 167 167 168 168 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); 170 170 if (rsize < 0) 171 171 bb_error_msg_and_die(bb_msg_read_error); … … 275 275 276 276 if (outpos >= OBUFSIZ) { 277 x write(dst_fd, outbuf, outpos);277 xtransformer_write(xstate, outbuf, outpos); 278 278 IF_DESKTOP(total_written += outpos;) 279 279 outpos = 0; … … 298 298 oldcode = incode; 299 299 } 300 301 300 } while (rsize > 0); 302 301 303 302 if (outpos > 0) { 304 x write(dst_fd, outbuf, outpos);303 xtransformer_write(xstate, outbuf, outpos); 305 304 IF_DESKTOP(total_written += outpos;) 306 305 }
Note:
See TracChangeset
for help on using the changeset viewer.