projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81fc5f
)
Fix a logic error, the old bunzip code returned non-zero for success,
author
Glenn L McGrath
<bug1@ihug.co.nz>
Tue, 28 Oct 2003 23:04:50 +0000
(23:04 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Tue, 28 Oct 2003 23:04:50 +0000
(23:04 -0000)
new code returns 0 for success.
archival/bunzip2.c
patch
|
blob
|
history
diff --git
a/archival/bunzip2.c
b/archival/bunzip2.c
index eb5238cd4378ac2a807d607dd8e87ca7c473fcb3..4f231c959f9c22f8701902a9aed187b35190644e 100644
(file)
--- 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];
}