projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
273af73
)
* archival/gzip.c (gzip_main): Display usage if given multiple files.
author
Matt Kraai
<kraai@debian.org>
Tue, 5 Feb 2002 19:34:53 +0000
(19:34 -0000)
committer
Matt Kraai
<kraai@debian.org>
Tue, 5 Feb 2002 19:34:53 +0000
(19:34 -0000)
archival/gzip.c
patch
|
blob
|
history
diff --git
a/archival/gzip.c
b/archival/gzip.c
index 436393ed5efc71172c89e4deacaac5aa5125b674..732a83e90adf7ae324b97a92817333b72f66e5a6 100644
(file)
--- a/
archival/gzip.c
+++ b/
archival/gzip.c
@@
-1246,6
+1246,9
@@
int gzip_main(int argc, char **argv)
tostdout = 1;
}
+ if (argc - optind > 1)
+ show_usage ();
+
if (isatty(fileno(stdout)) && tostdout==1 && force==0)
error_msg_and_die( "compressed data not written to terminal. Use -f to force it.");