summaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-03-29 01:07:54 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-03-29 01:07:54 +0000
commit5f2ef46d6dd0cc8f564b11da70ac8c34968302d1 (patch)
tree9a6f77212781322d0a5280339dd6f4a8dd943083 /gunzip.c
parented7a77653847c72bfe22879cea5f976fa9defb24 (diff)
downloadbusybox-w32-5f2ef46d6dd0cc8f564b11da70ac8c34968302d1.tar.gz
busybox-w32-5f2ef46d6dd0cc8f564b11da70ac8c34968302d1.tar.bz2
busybox-w32-5f2ef46d6dd0cc8f564b11da70ac8c34968302d1.zip
Fix zcat
Diffstat (limited to '')
-rw-r--r--gunzip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gunzip.c b/gunzip.c
index d457b750c..1107bc75c 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -1074,16 +1074,14 @@ extern int gunzip_main(int argc, char **argv)
1074 int opt = 0; 1074 int opt = 0;
1075 int delete_old_file = FALSE; 1075 int delete_old_file = FALSE;
1076 1076
1077#ifdef BB_ZCAT
1078 /* if called as zcat */ 1077 /* if called as zcat */
1079 if (strcmp(applet_name, "zcat") == 0) { 1078 if (strcmp(applet_name, "zcat") == 0) {
1080 if (argc != 2) { 1079 if (argc != 2) {
1081 show_usage(); 1080 show_usage();
1082 } 1081 }
1082 optind = 1;
1083 flags |= (gunzip_force | gunzip_to_stdout); 1083 flags |= (gunzip_force | gunzip_to_stdout);
1084 } else 1084 } else {
1085#endif
1086 if (strcmp(applet_name, "gunzip") == 0) {
1087 /* workout flags as regular gunzip */ 1085 /* workout flags as regular gunzip */
1088 /* set default flags */ 1086 /* set default flags */
1089 if (argc == 1) { 1087 if (argc == 1) {