← Commit list

081df62b9

Robert Griebl
Robert Griebl
2002-05-15
FAILED Duration: 132s

Subject

Don't delete source file when decompressing to stdout This is the normal GNU gunzip behaviour

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/gunzip.c+2 -1
@@ -132,7 +132,8 @@ static int gunzip_file (const char *path, int flags)
/* do the decompression, and cleanup */
if (unzip(in_file, out_file) == 0) {
/* Success, remove .gz file */
- delete_path = path;
+ if ( !(flags & gunzip_to_stdout ))
+ delete_path = path;
if (flags & gunzip_verbose) {
fprintf(stderr, "OK\n");
}