summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-08 12:55:32 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-08 12:55:32 +1000
commitdf189fb2792184d038650437b752e23b1d4b71cf (patch)
tree95190f41920e3f9ff034881d463069fd3e8dc50a
parent0f7e910604a9858d71077a50bffca34299894895 (diff)
- djm@cvs.openbsd.org 2008/05/19 20:53:52
[clientloop.c] unbreak tree by committing this bit that I missed from: Fix sending tty modes when stdin is not a tty (bz#1199). Previously we would send the modes corresponding to a zeroed struct termios, whereas we should have been sending an empty list of modes. Based on patch from daniel.ritz AT alcatel.ch; ok dtucker@ markus@
-rw-r--r--ChangeLog9
-rw-r--r--clientloop.c8
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b2e5d8a9..be3e104ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,13 @@
16 support -l (print fingerprint) in combination with -F (find host) to 16 support -l (print fingerprint) in combination with -F (find host) to
17 search for a host in ~/.ssh/known_hosts and display its fingerprint; 17 search for a host in ~/.ssh/known_hosts and display its fingerprint;
18 ok markus@ 18 ok markus@
19 - djm@cvs.openbsd.org 2008/05/19 20:53:52
20 [clientloop.c]
21 unbreak tree by committing this bit that I missed from:
22 Fix sending tty modes when stdin is not a tty (bz#1199). Previously
23 we would send the modes corresponding to a zeroed struct termios,
24 whereas we should have been sending an empty list of modes.
25 Based on patch from daniel.ritz AT alcatel.ch; ok dtucker@ markus@
19 26
2020080604 2720080604
21 - (djm) [openbsd-compat/bsd-arc4random.c] Fix math bug that caused bias 28 - (djm) [openbsd-compat/bsd-arc4random.c] Fix math bug that caused bias
@@ -4047,4 +4054,4 @@
4047 OpenServer 6 and add osr5bigcrypt support so when someone migrates 4054 OpenServer 6 and add osr5bigcrypt support so when someone migrates
4048 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 4055 passwords between UnixWare and OpenServer they will still work. OK dtucker@
4049 4056
4050$Id: ChangeLog,v 1.4941 2008/06/08 02:54:29 dtucker Exp $ 4057$Id: ChangeLog,v 1.4942 2008/06/08 02:55:32 dtucker Exp $
diff --git a/clientloop.c b/clientloop.c
index 584afb76a..3bc8bb8d0 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.193 2008/05/09 16:21:13 markus Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.194 2008/05/19 20:53:52 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1725,7 +1725,6 @@ client_session2_setup(int id, int want_tty, int want_subsystem,
1725 1725
1726 if (want_tty) { 1726 if (want_tty) {
1727 struct winsize ws; 1727 struct winsize ws;
1728 struct termios tio;
1729 1728
1730 /* Store window size in the packet. */ 1729 /* Store window size in the packet. */
1731 if (ioctl(in_fd, TIOCGWINSZ, &ws) < 0) 1730 if (ioctl(in_fd, TIOCGWINSZ, &ws) < 0)
@@ -1738,8 +1737,9 @@ client_session2_setup(int id, int want_tty, int want_subsystem,
1738 packet_put_int((u_int)ws.ws_row); 1737 packet_put_int((u_int)ws.ws_row);
1739 packet_put_int((u_int)ws.ws_xpixel); 1738 packet_put_int((u_int)ws.ws_xpixel);
1740 packet_put_int((u_int)ws.ws_ypixel); 1739 packet_put_int((u_int)ws.ws_ypixel);
1741 tio = get_saved_tio(); 1740 if (tiop == NULL)
1742 tty_make_modes(-1, tiop != NULL ? tiop : &tio); 1741 tiop = get_saved_tio();
1742 tty_make_modes(-1, tiop);
1743 packet_send(); 1743 packet_send();
1744 /* XXX wait for reply */ 1744 /* XXX wait for reply */
1745 c->client_tty = 1; 1745 c->client_tty = 1;