projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7348b
)
Make - read compressed data from stdin (thanks to Marius Groeger).
author
Matt Kraai
<kraai@debian.org>
Tue, 22 May 2001 14:23:02 +0000
(14:23 -0000)
committer
Matt Kraai
<kraai@debian.org>
Tue, 22 May 2001 14:23:02 +0000
(14:23 -0000)
archival/gunzip.c
patch
|
blob
|
history
gunzip.c
patch
|
blob
|
history
diff --git
a/archival/gunzip.c
b/archival/gunzip.c
index
6f5e63d
..
c39814d
100644
(file)
--- a/
archival/gunzip.c
+++ b/
archival/gunzip.c
@@
-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 {
diff --git
a/gunzip.c
b/gunzip.c
index
6f5e63d
..
c39814d
100644
(file)
--- a/
gunzip.c
+++ b/
gunzip.c
@@
-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 {