mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Fix a logic error, the old bunzip code returned non-zero for success,
new code returns 0 for success.
This commit is contained in:
parent
e81fc5fb30
commit
debb21ece7
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user