summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshpty.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-05-19 15:45:08 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-05-19 15:45:08 +0000
commit598ef7150f30391faa91b0547abd92cfe1f53987 (patch)
treebdca53ff2b27164841bfdb80501be6f2a85c3396 /usr.bin/ssh/sshpty.h
parentfa807a50f99bead557768de9606d5a2fafb88292 (diff)
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@
Diffstat (limited to 'usr.bin/ssh/sshpty.h')
-rw-r--r--usr.bin/ssh/sshpty.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshpty.h b/usr.bin/ssh/sshpty.h
index 7fac622d9be..ac900358462 100644
--- a/usr.bin/ssh/sshpty.h
+++ b/usr.bin/ssh/sshpty.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshpty.h,v 1.10 2006/08/03 03:34:42 deraadt Exp $ */
+/* $OpenBSD: sshpty.h,v 1.11 2008/05/19 15:45:07 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -16,7 +16,7 @@
#include <termios.h>
-struct termios get_saved_tio(void);
+struct termios *get_saved_tio(void);
void leave_raw_mode(void);
void enter_raw_mode(void);