aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-11-01 01:38:54 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-11-01 01:38:54 +0100
commit8531c43b505916067d5162469307828a4eab0ab8 (patch)
treeaa0bf80818ee5b80019ff8dd1b979b975bb059d1
parent2658888c78b572f349f326dce499930fa4418b4e (diff)
downloadbusybox-8531c43b505916067d5162469307828a4eab0ab8.tar.gz
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libunarchive/decompress_bunzip2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index d30166fa4..0fa4fb886 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -55,7 +55,7 @@
#define RETVAL_LAST_BLOCK (-1)
#define RETVAL_NOT_BZIP_DATA (-2)
#define RETVAL_UNEXPECTED_INPUT_EOF (-3)
-//#define RETVAL_SHORT_WRITE (-4)
+#define RETVAL_SHORT_WRITE (-4)
#define RETVAL_DATA_ERROR (-5)
#define RETVAL_OUT_OF_MEMORY (-6)
#define RETVAL_OBSOLETE_INPUT (-7)
@@ -745,6 +745,7 @@ unpack_bz2_stream(int src_fd, int dst_fd)
break;
if (i != full_write(dst_fd, outbuf, i)) {
bb_error_msg("short write");
+ i = RETVAL_SHORT_WRITE;
goto release_mem;
}
IF_DESKTOP(total_written += i;)