]> andersk Git - openssh.git/blobdiff - sshtty.c
- (dtucker) [loginrec.c] Use the SUSv3 specified name for the user name
[openssh.git] / sshtty.c
index 844a5c0630edfbf887ca591e34344f0c4c14d1f3..21ade4e5153dc6ec9ab790ab728700f3049ec813 100644 (file)
--- a/sshtty.c
+++ b/sshtty.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: sshtty.c,v 1.13 2008/05/19 15:45:07 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshtty.c,v 1.8 2006/02/07 01:52:50 stevesk Exp $");
 
+#include <sys/types.h>
+#include <stdio.h>
 #include <termios.h>
+#include <pwd.h>
 
 #include "sshpty.h"
 
 static struct termios _saved_tio;
 static int _in_raw_mode = 0;
 
-struct termios
+struct termios *
 get_saved_tio(void)
 {
-       return _saved_tio;
+       return _in_raw_mode ? &_saved_tio : NULL;
 }
 
 void
This page took 0.076259 seconds and 4 git commands to generate.