diff options
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r-- | archival/gunzip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index e47dd3f..032b43c 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -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"); } |