aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-22 14:23:02 +0000
committerMatt Kraai <kraai@debian.org>2001-05-22 14:23:02 +0000
commit117231c44f2a6b25b211322b61b192d788917c84 (patch)
treed2222d5f582332f36bba4ea05ac46ee176e2cb92
parent7f7348b7b2ae134d1e958c04b3123b573dec8b70 (diff)
downloadbusybox-w32-117231c44f2a6b25b211322b61b192d788917c84.tar.gz
busybox-w32-117231c44f2a6b25b211322b61b192d788917c84.tar.bz2
busybox-w32-117231c44f2a6b25b211322b61b192d788917c84.zip
Make - read compressed data from stdin (thanks to Marius Groeger).
-rw-r--r--archival/gunzip.c2
-rw-r--r--gunzip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 6f5e63d4b..c39814de0 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
110 } 110 }
111 111
112 /* Set input filename and number */ 112 /* Set input filename and number */
113 if (argv[optind] == NULL) { 113 if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
114 flags |= gunzip_to_stdout; 114 flags |= gunzip_to_stdout;
115 in_file = stdin; 115 in_file = stdin;
116 } else { 116 } else {
diff --git a/gunzip.c b/gunzip.c
index 6f5e63d4b..c39814de0 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
110 } 110 }
111 111
112 /* Set input filename and number */ 112 /* Set input filename and number */
113 if (argv[optind] == NULL) { 113 if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
114 flags |= gunzip_to_stdout; 114 flags |= gunzip_to_stdout;
115 in_file = stdin; 115 in_file = stdin;
116 } else { 116 } else {