From 7499918f304554c6a0047e43b679cc481cc70eba Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 30 Jul 2001 04:48:50 +0000 Subject: If filename is a '-' then read from stdin to stdout --- archival/gzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/gzip.c') 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) show_usage(); } } - if (optind == argc) { + if ((optind == argc) || (strcmp(argv[optind], "-") == 0)) { fromstdin = 1; tostdout = 1; } -- cgit v1.2.3