mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 16:29:50 +00:00
Don't delete source file when decompressing to stdout
This is the normal GNU gunzip behaviour
This commit is contained in:
parent
52e8d060a9
commit
081df62b92
@ -132,6 +132,7 @@ 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 */
|
||||
if ( !(flags & gunzip_to_stdout ))
|
||||
delete_path = path;
|
||||
if (flags & gunzip_verbose) {
|
||||
fprintf(stderr, "OK\n");
|
||||
|
Loading…
Reference in New Issue
Block a user