wok-next view busybox/stuff/busybox-1.10.1-unlzma.u @ rev 1558

add the real wget, needed by get-texlive
author Pierre-Jean Fichet <sygne@ombres.eu>
date Sun Oct 12 23:19:02 2008 +0200 (2008-10-12)
parents
children
line source
1 --- busybox-1.10.1/archival/libunarchive/decompress_unlzma.c
2 +++ busybox-1.10.1/archival/libunarchive/decompress_unlzma.c
3 @@ -491,10 +491,16 @@
5 if (full_write(dst_fd, buffer, buffer_pos) != buffer_pos) {
6 bad:
7 + len = -1;
8 + }
9 + else {
10 + USE_DESKTOP(total_written += buffer_pos;)
11 + len = USE_DESKTOP(total_written) + 0;
12 + }
13 + if (ENABLE_FEATURE_CLEAN_UP) {
14 rc_free(rc);
15 - return -1;
16 + free(buffer);
17 + free(p);
18 }
19 - rc_free(rc);
20 - USE_DESKTOP(total_written += buffer_pos;)
21 - return USE_DESKTOP(total_written) + 0;
22 + return len;
23 }