From: Glenn L McGrath Date: Tue, 28 Oct 2003 23:04:50 +0000 (-0000) Subject: Fix a logic error, the old bunzip code returned non-zero for success, X-Git-Tag: 1_00_pre4~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=debb21ece7be5a17b468bab0cba74f8026008d0d;p=platform%2Fupstream%2Fbusybox.git Fix a logic error, the old bunzip code returned non-zero for success, new code returns 0 for success. --- diff --git a/archival/bunzip2.c b/archival/bunzip2.c index eb5238c..4f231c9 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -83,7 +83,7 @@ int bunzip2_main(int argc, char **argv) dst_fd = bb_xopen(save_name, O_WRONLY | O_CREAT); } - if (uncompressStream(src_fd, dst_fd)) { + if (uncompressStream(src_fd, dst_fd) == 0) { if (!(flags & bunzip_to_stdout)) { delete_name = argv[optind]; }