projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e8d06
)
Don't delete source file when decompressing to stdout
author
Robert Griebl
<griebl@gmx.de>
Wed, 15 May 2002 21:45:52 +0000
(21:45 -0000)
committer
Robert Griebl
<griebl@gmx.de>
Wed, 15 May 2002 21:45:52 +0000
(21:45 -0000)
This is the normal GNU gunzip behaviour
archival/gunzip.c
patch
|
blob
|
history
diff --git
a/archival/gunzip.c
b/archival/gunzip.c
index e47dd3f83d3c1c56eb2f4017f40f7459142b3c6e..032b43c2ce4475d34ddf37fc49294c5674d2cdba 100644
(file)
--- 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");
}