diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-10-28 23:04:50 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-10-28 23:04:50 +0000 |
commit | debb21ece7be5a17b468bab0cba74f8026008d0d (patch) | |
tree | 6f5e323930f5a63e6afd7b7db55a9a166580f3d0 /archival | |
parent | e81fc5fb3001da60b30a7cc793b80ab082d6ef6d (diff) | |
download | busybox-debb21ece7be5a17b468bab0cba74f8026008d0d.tar.gz |
Fix a logic error, the old bunzip code returned non-zero for success,
new code returns 0 for success.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/bunzip2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c index eb5238cd4..4f231c959 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]; } |