decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2658888c78
commit
8531c43b50
@ -55,7 +55,7 @@
|
|||||||
#define RETVAL_LAST_BLOCK (-1)
|
#define RETVAL_LAST_BLOCK (-1)
|
||||||
#define RETVAL_NOT_BZIP_DATA (-2)
|
#define RETVAL_NOT_BZIP_DATA (-2)
|
||||||
#define RETVAL_UNEXPECTED_INPUT_EOF (-3)
|
#define RETVAL_UNEXPECTED_INPUT_EOF (-3)
|
||||||
//#define RETVAL_SHORT_WRITE (-4)
|
#define RETVAL_SHORT_WRITE (-4)
|
||||||
#define RETVAL_DATA_ERROR (-5)
|
#define RETVAL_DATA_ERROR (-5)
|
||||||
#define RETVAL_OUT_OF_MEMORY (-6)
|
#define RETVAL_OUT_OF_MEMORY (-6)
|
||||||
#define RETVAL_OBSOLETE_INPUT (-7)
|
#define RETVAL_OBSOLETE_INPUT (-7)
|
||||||
@ -745,6 +745,7 @@ unpack_bz2_stream(int src_fd, int dst_fd)
|
|||||||
break;
|
break;
|
||||||
if (i != full_write(dst_fd, outbuf, i)) {
|
if (i != full_write(dst_fd, outbuf, i)) {
|
||||||
bb_error_msg("short write");
|
bb_error_msg("short write");
|
||||||
|
i = RETVAL_SHORT_WRITE;
|
||||||
goto release_mem;
|
goto release_mem;
|
||||||
}
|
}
|
||||||
IF_DESKTOP(total_written += i;)
|
IF_DESKTOP(total_written += i;)
|
||||||
|
Loading…
Reference in New Issue
Block a user