[BusyBox-cvs] busybox/archival bunzip2.c,1.14,1.15
Glenn McGrath
bug1 at busybox.net
Tue Oct 28 23:04:53 UTC 2003
Update of /var/cvs/busybox/archival
In directory winder:/tmp/cvs-serv12400/archival
Modified Files:
bunzip2.c
Log Message:
Fix a logic error, the old bunzip code returned non-zero for success,
new code returns 0 for success.
Index: bunzip2.c
===================================================================
RCS file: /var/cvs/busybox/archival/bunzip2.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- bunzip2.c 19 Mar 2003 09:11:21 -0000 1.14
+++ bunzip2.c 28 Oct 2003 23:04:50 -0000 1.15
@@ -83,7 +83,7 @@
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];
}
More information about the busybox-cvs
mailing list