summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index c75decc1b..1d98a7034 100644
--- a/ssh.c
+++ b/ssh.c
@@ -602,7 +602,7 @@ main(int ac, char **av)
602 tty_flag = 0; 602 tty_flag = 0;
603 /* Do not allocate a tty if stdin is not a tty. */ 603 /* Do not allocate a tty if stdin is not a tty. */
604 if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) { 604 if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) {
605 if (tty_flag) 605 if (tty_flag && options.log_level > SYSLOG_LEVEL_QUIET)
606 logit("Pseudo-terminal will not be allocated because stdin is not a terminal."); 606 logit("Pseudo-terminal will not be allocated because stdin is not a terminal.");
607 tty_flag = 0; 607 tty_flag = 0;
608 } 608 }
@@ -1485,7 +1485,7 @@ control_client(const char *path)
1485 1485
1486 leave_raw_mode(); 1486 leave_raw_mode();
1487 1487
1488 if (tty_flag && options.log_level != SYSLOG_LEVEL_QUIET) 1488 if (tty_flag && options.log_level > SYSLOG_LEVEL_QUIET)
1489 fprintf(stderr, "Connection to master closed.\r\n"); 1489 fprintf(stderr, "Connection to master closed.\r\n");
1490 1490
1491 exit(exitval); 1491 exit(exitval);