diff options
author | Damien Miller <djm@mindrot.org> | 2011-05-15 08:45:50 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-05-15 08:45:50 +1000 |
commit | 21771e22d3e23a10cb01983b2df83d47362eadda (patch) | |
tree | f9b85caefb4f1549c847d34a7c7b3adead764c6b /mux.c | |
parent | fe92421772243702ecb18b862dbeb51a9bdbbc6e (diff) |
- djm@cvs.openbsd.org 2011/05/06 21:34:32
[clientloop.c mux.c readconf.c readconf.h ssh.c ssh_config.5]
Add a RequestTTY ssh_config option to allow configuration-based
control over tty allocation (like -t/-T); ok markus@
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.26 2011/05/05 05:12:08 djm Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.27 2011/05/06 21:34:32 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 | * |
@@ -87,7 +87,6 @@ | |||
87 | 87 | ||
88 | /* from ssh.c */ | 88 | /* from ssh.c */ |
89 | extern int tty_flag; | 89 | extern int tty_flag; |
90 | extern int force_tty_flag; | ||
91 | extern Options options; | 90 | extern Options options; |
92 | extern int stdin_null_flag; | 91 | extern int stdin_null_flag; |
93 | extern char *host; | 92 | extern char *host; |
@@ -1710,7 +1709,7 @@ mux_client_request_session(int fd) | |||
1710 | signal(SIGWINCH, control_client_sigrelay); | 1709 | signal(SIGWINCH, control_client_sigrelay); |
1711 | 1710 | ||
1712 | if (tty_flag) | 1711 | if (tty_flag) |
1713 | enter_raw_mode(force_tty_flag); | 1712 | enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |
1714 | 1713 | ||
1715 | /* | 1714 | /* |
1716 | * Stick around until the controlee closes the client_fd. | 1715 | * Stick around until the controlee closes the client_fd. |
@@ -1739,7 +1738,7 @@ mux_client_request_session(int fd) | |||
1739 | } | 1738 | } |
1740 | 1739 | ||
1741 | close(fd); | 1740 | close(fd); |
1742 | leave_raw_mode(force_tty_flag); | 1741 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |
1743 | 1742 | ||
1744 | if (muxclient_terminate) { | 1743 | if (muxclient_terminate) { |
1745 | debug2("Exiting on signal %d", muxclient_terminate); | 1744 | debug2("Exiting on signal %d", muxclient_terminate); |