Make - read compressed data from stdin (thanks to Marius Groeger).
This commit is contained in:
parent
7f7348b7b2
commit
117231c44f
@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set input filename and number */
|
/* Set input filename and number */
|
||||||
if (argv[optind] == NULL) {
|
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
|
||||||
flags |= gunzip_to_stdout;
|
flags |= gunzip_to_stdout;
|
||||||
in_file = stdin;
|
in_file = stdin;
|
||||||
} else {
|
} else {
|
||||||
|
2
gunzip.c
2
gunzip.c
@ -110,7 +110,7 @@ extern int gunzip_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set input filename and number */
|
/* Set input filename and number */
|
||||||
if (argv[optind] == NULL) {
|
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
|
||||||
flags |= gunzip_to_stdout;
|
flags |= gunzip_to_stdout;
|
||||||
in_file = stdin;
|
in_file = stdin;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user