summaryrefslogtreecommitdiff
path: root/sshtty.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-12-29 21:42:53 +0000
committerColin Watson <cjwatson@debian.org>2009-12-29 21:42:53 +0000
commit87552344215a38d3a2b0d4d63dc151e05978bbe1 (patch)
tree9f4b96055e6ccaa915e8d59d9f2805e9e119371d /sshtty.c
parenta25ec0b132c44c9e341e08464ff830de06b81126 (diff)
parentef94e5613d37bcbf880f21ee6094e4b1c7683a4c (diff)
import openssh-5.1p1-gsskex-cjwatson-20080722.patch
Diffstat (limited to 'sshtty.c')
-rw-r--r--sshtty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshtty.c b/sshtty.c
index 04567669b..21ade4e51 100644
--- a/sshtty.c
+++ b/sshtty.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshtty.c,v 1.12 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: sshtty.c,v 1.13 2008/05/19 15:45:07 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
@@ -47,10 +47,10 @@
47static struct termios _saved_tio; 47static struct termios _saved_tio;
48static int _in_raw_mode = 0; 48static int _in_raw_mode = 0;
49 49
50struct termios 50struct termios *
51get_saved_tio(void) 51get_saved_tio(void)
52{ 52{
53 return _saved_tio; 53 return _in_raw_mode ? &_saved_tio : NULL;
54} 54}
55 55
56void 56void