summaryrefslogtreecommitdiff
path: root/mux.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-05-15 08:45:50 +1000
committerDamien Miller <djm@mindrot.org>2011-05-15 08:45:50 +1000
commit21771e22d3e23a10cb01983b2df83d47362eadda (patch)
treef9b85caefb4f1549c847d34a7c7b3adead764c6b /mux.c
parentfe92421772243702ecb18b862dbeb51a9bdbbc6e (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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mux.c b/mux.c
index fb24c0f97..1afd1bdf3 100644
--- a/mux.c
+++ b/mux.c
@@ -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 */
89extern int tty_flag; 89extern int tty_flag;
90extern int force_tty_flag;
91extern Options options; 90extern Options options;
92extern int stdin_null_flag; 91extern int stdin_null_flag;
93extern char *host; 92extern 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);