wok-4.x annotate busybox/stuff/busybox-1.10.1-unlzma.u @ rev 1465
update BUILD_DEPENDS in asunder clearlooks evas gcolor2 gnome-menus grsync intltool libiec61883 libwnck neon poedit portmap pycairo shared-mime-info tsclient xorg-libICE xorg-xload
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 09:01:05 2008 +0000 (2008-10-04) |
parents | |
children |
rev | line source |
---|---|
pascal@666 | 1 --- busybox-1.10.1/archival/libunarchive/decompress_unlzma.c |
pascal@666 | 2 +++ busybox-1.10.1/archival/libunarchive/decompress_unlzma.c |
pascal@666 | 3 @@ -491,10 +491,16 @@ |
pascal@666 | 4 |
pascal@666 | 5 if (full_write(dst_fd, buffer, buffer_pos) != buffer_pos) { |
pascal@666 | 6 bad: |
pascal@666 | 7 + len = -1; |
pascal@666 | 8 + } |
pascal@666 | 9 + else { |
pascal@666 | 10 + USE_DESKTOP(total_written += buffer_pos;) |
pascal@666 | 11 + len = USE_DESKTOP(total_written) + 0; |
pascal@666 | 12 + } |
pascal@666 | 13 + if (ENABLE_FEATURE_CLEAN_UP) { |
pascal@666 | 14 rc_free(rc); |
pascal@666 | 15 - return -1; |
pascal@666 | 16 + free(buffer); |
pascal@666 | 17 + free(p); |
pascal@666 | 18 } |
pascal@666 | 19 - rc_free(rc); |
pascal@666 | 20 - USE_DESKTOP(total_written += buffer_pos;) |
pascal@666 | 21 - return USE_DESKTOP(total_written) + 0; |
pascal@666 | 22 + return len; |
pascal@666 | 23 } |