summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-10 05:05:45 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-10 05:05:45 +0000
commit59b9e870243c56a9c5ec045a925e4e9b3f1f6c3c (patch)
tree8db9c40b68387c1017007f5265e45c2a66ccfb0d /archival
parentac130e1dca289c431c43b6efee4b3d9f2b367c87 (diff)
downloadbusybox-w32-59b9e870243c56a9c5ec045a925e4e9b3f1f6c3c.tar.gz
busybox-w32-59b9e870243c56a9c5ec045a925e4e9b3f1f6c3c.tar.bz2
busybox-w32-59b9e870243c56a9c5ec045a925e4e9b3f1f6c3c.zip
* cp -fa now works as expected for symlinks (it didn't before)
* zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik
Diffstat (limited to 'archival')
-rw-r--r--archival/gunzip.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 97ab84e2d..bdf8dc293 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -715,11 +715,12 @@ int gunzip_main(int argc, char **argv)
715 char ifname[MAX_PATH_LEN + 1]; /* input file name */ 715 char ifname[MAX_PATH_LEN + 1]; /* input file name */
716 char ofname[MAX_PATH_LEN + 1]; /* output file name */ 716 char ofname[MAX_PATH_LEN + 1]; /* output file name */
717 717
718 if (argc == 1) 718 if (strcmp(*argv, "zcat") == 0) {
719 usage(gunzip_usage);
720
721 if (strcmp(*argv, "zcat") == 0)
722 to_stdout = 1; 719 to_stdout = 1;
720 if (argc == 1) {
721 fromstdin = 1;
722 }
723 }
723 724
724 /* Parse any options */ 725 /* Parse any options */
725 while (--argc > 0 && **(++argv) == '-') { 726 while (--argc > 0 && **(++argv) == '-') {