← Commit list

a0782684f

Matt Kraai
Matt Kraai
2002-04-15
FAILED Duration: 5s

Subject

* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard output. * testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/bunzip2.c+2 -2
@@ -2373,11 +2373,11 @@ int bunzip2_main(int argc, char **argv)
}
if (uncompressStream(src_stream, dst_stream)) {
- if (save_name != NULL)
+ if (!(flags & bunzip_to_stdout))
delete_name = argv[optind];
status = EXIT_SUCCESS;
} else {
- if (save_name != NULL)
+ if (!(flags & bunzip_to_stdout))
delete_name = save_name;
status = EXIT_FAILURE;
}
testsuite/bunzip2/bzcat-does-not-remove-compressed-file+3 -0
@@ -0,0 +1,3 @@
+echo foo | bzip2 >foo.bz2
+busybox bzcat foo.bz2
+test -f foo.bz2