diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-30 04:48:50 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-30 04:48:50 +0000 |
commit | 7499918f304554c6a0047e43b679cc481cc70eba (patch) | |
tree | 068fcf4dbd9857ceda78659ca3435d31a85f0d28 /archival/gzip.c | |
parent | 14d7ea460fb76366a0b7ddf4e656d57e131fbf8a (diff) | |
download | busybox-w32-7499918f304554c6a0047e43b679cc481cc70eba.tar.gz busybox-w32-7499918f304554c6a0047e43b679cc481cc70eba.tar.bz2 busybox-w32-7499918f304554c6a0047e43b679cc481cc70eba.zip |
If filename is a '-' then read from stdin to stdout
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index cdf226889..54bb72745 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1246,7 +1246,7 @@ int gzip_main(int argc, char **argv) | |||
1246 | show_usage(); | 1246 | show_usage(); |
1247 | } | 1247 | } |
1248 | } | 1248 | } |
1249 | if (optind == argc) { | 1249 | if ((optind == argc) || (strcmp(argv[optind], "-") == 0)) { |
1250 | fromstdin = 1; | 1250 | fromstdin = 1; |
1251 | tostdout = 1; | 1251 | tostdout = 1; |
1252 | } | 1252 | } |