diff options
-rw-r--r-- | cmds-send.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds-send.c b/cmds-send.c index 59522c35..29a7dd34 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -429,6 +429,11 @@ int cmd_send_start(int argc, char **argv) memset(&send, 0, sizeof(send)); send.dump_fd = fileno(stdout); + if (isatty(send.dump_fd)) { + fprintf(stderr, "ERROR: not dumping send stream into a terminal, redirect it into a file\n"); + return 1; + } + while ((c = getopt(argc, argv, "vf:i:p:")) != -1) { switch (c) { case 'v': |