diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-10 05:05:45 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-10 05:05:45 +0000 |
commit | 59b9e870243c56a9c5ec045a925e4e9b3f1f6c3c (patch) | |
tree | 8db9c40b68387c1017007f5265e45c2a66ccfb0d /archival | |
parent | ac130e1dca289c431c43b6efee4b3d9f2b367c87 (diff) |
* 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.c | 9 |
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) char ifname[MAX_PATH_LEN + 1]; /* input file name */ char ofname[MAX_PATH_LEN + 1]; /* output file name */ - if (argc == 1) - usage(gunzip_usage); - - if (strcmp(*argv, "zcat") == 0) + if (strcmp(*argv, "zcat") == 0) { to_stdout = 1; + if (argc == 1) { + fromstdin = 1; + } + } /* Parse any options */ while (--argc > 0 && **(++argv) == '-') { |