diff -3ur ssh-1.2.27-fresh/ttymodes.c ssh-1.2.27-sc/ttymodes.c
--- ssh-1.2.27-fresh/ttymodes.c	Wed May 12 07:19:29 1999
+++ ssh-1.2.27-sc/ttymodes.c	Thu Jul 20 15:33:02 2000
@@ -17,8 +17,17 @@
 */
 
 /*
- * $Id: ttymodes.c,v 1.4 1998/04/17 00:42:50 kivinen Exp $
+ * $Id: ttymodes.c,v 1.2 2000/05/13 19:40:45 itoi Exp $
  * $Log: ttymodes.c,v $
+ * Revision 1.2  2000/05/13 19:40:45  itoi
+ * ssh / speke / udp / ip / 7816 works!
+ *
+ * Revision 1.1  2000/05/13 02:29:42  itoi
+ * Initial revision
+ *
+ * Revision 1.1.1.1  2000/02/21 22:19:46  itoi
+ * SSH / Smartcard
+ *
  * Revision 1.4  1998/04/17 00:42:50  kivinen
  * 	Fixed previous fix.
  *
@@ -254,6 +263,7 @@
 
 void tty_make_modes(int fd)
 {
+  int rv; 
 #ifdef USING_TERMIOS
   struct termios tio;
 #endif
@@ -270,8 +280,9 @@
 
   /* Get the modes. */
 #ifdef USING_TERMIOS
-  if (tcgetattr(fd, &tio) < 0)
+  if (rv = tcgetattr(fd, &tio) < 0)
     {
+      debug ("tcgetattr() rv = %d\n", rv);
       packet_put_char(TTY_OP_END);
       log_msg("tcgetattr: %.100s", strerror(errno));
       return;
