diff options
-rw-r--r-- | archival/gzip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 436393ed5..732a83e90 100644 --- 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."); |