aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/bunzip2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c
index a7b41b7d1..f2d514912 100644
--- a/archival/bunzip2.c
+++ b/archival/bunzip2.c
@@ -2373,11 +2373,11 @@ int bunzip2_main(int argc, char **argv)
2373 } 2373 }
2374 2374
2375 if (uncompressStream(src_stream, dst_stream)) { 2375 if (uncompressStream(src_stream, dst_stream)) {
2376 if (save_name != NULL) 2376 if (!(flags & bunzip_to_stdout))
2377 delete_name = argv[optind]; 2377 delete_name = argv[optind];
2378 status = EXIT_SUCCESS; 2378 status = EXIT_SUCCESS;
2379 } else { 2379 } else {
2380 if (save_name != NULL) 2380 if (!(flags & bunzip_to_stdout))
2381 delete_name = save_name; 2381 delete_name = save_name;
2382 status = EXIT_FAILURE; 2382 status = EXIT_FAILURE;
2383 } 2383 }