diff options
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.8 2009/08/20 23:54:28 dtucker Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.9 2010/01/09 05:04:24 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -82,6 +82,7 @@ | |||
82 | 82 | ||
83 | /* from ssh.c */ | 83 | /* from ssh.c */ |
84 | extern int tty_flag; | 84 | extern int tty_flag; |
85 | extern int force_tty_flag; | ||
85 | extern Options options; | 86 | extern Options options; |
86 | extern int stdin_null_flag; | 87 | extern int stdin_null_flag; |
87 | extern char *host; | 88 | extern char *host; |
@@ -683,7 +684,7 @@ muxclient(const char *path) | |||
683 | signal(SIGWINCH, control_client_sigrelay); | 684 | signal(SIGWINCH, control_client_sigrelay); |
684 | 685 | ||
685 | if (tty_flag) | 686 | if (tty_flag) |
686 | enter_raw_mode(); | 687 | enter_raw_mode(force_tty_flag); |
687 | 688 | ||
688 | /* | 689 | /* |
689 | * Stick around until the controlee closes the client_fd. | 690 | * Stick around until the controlee closes the client_fd. |
@@ -708,7 +709,7 @@ muxclient(const char *path) | |||
708 | } | 709 | } |
709 | 710 | ||
710 | close(sock); | 711 | close(sock); |
711 | leave_raw_mode(); | 712 | leave_raw_mode(force_tty_flag); |
712 | if (i > (int)sizeof(int)) | 713 | if (i > (int)sizeof(int)) |
713 | fatal("%s: master returned too much data (%d > %lu)", | 714 | fatal("%s: master returned too much data (%d > %lu)", |
714 | __func__, i, (u_long)sizeof(int)); | 715 | __func__, i, (u_long)sizeof(int)); |