Make - read compressed data from stdin (thanks to Marius Groeger).

This commit is contained in:
Matt Kraai 2001-05-22 14:23:02 +00:00
parent 7f7348b7b2
commit 117231c44f
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
}
/* Set input filename and number */
if (argv[optind] == NULL) {
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
flags |= gunzip_to_stdout;
in_file = stdin;
} else {

View File

@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
}
/* Set input filename and number */
if (argv[optind] == NULL) {
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
flags |= gunzip_to_stdout;
in_file = stdin;
} else {