[BACK]Return to login.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/login.c between version 1.11 and 1.12

version 1.11, 2000/01/04 00:07:59 version 1.12, 2000/04/14 10:30:31
Line 1 
Line 1 
 /*  /*
  *   *
  * login.c   * login.c
  *   *
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  *   *
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved   *                    All rights reserved
  *   *
  * Created: Fri Mar 24 14:51:08 1995 ylo   * Created: Fri Mar 24 14:51:08 1995 ylo
  *   *
  * This file performs some of the things login(1) normally does.  We cannot   * This file performs some of the things login(1) normally does.  We cannot
  * easily use something like login -p -h host -f user, because there are   * easily use something like login -p -h host -f user, because there are
  * several different logins around, and it is hard to determined what kind of   * several different logins around, and it is hard to determined what kind of
  * login the current system has.  Also, we want to be able to execute commands   * login the current system has.  Also, we want to be able to execute commands
  * on a tty.   * on a tty.
  *   *
  */   */
   
 #include "includes.h"  #include "includes.h"
Line 35 
Line 35 
  * is found).  The name of the host used last time is returned in buf.   * is found).  The name of the host used last time is returned in buf.
  */   */
   
 unsigned long  unsigned long
 get_last_login_time(uid_t uid, const char *logname,  get_last_login_time(uid_t uid, const char *logname,
                     char *buf, unsigned int bufsize)                      char *buf, unsigned int bufsize)
 {  {
Line 67 
Line 67 
  * were more standardized.   * were more standardized.
  */   */
   
 void  void
 record_login(int pid, const char *ttyname, const char *user, uid_t uid,  record_login(int pid, const char *ttyname, const char *user, uid_t uid,
              const char *host, struct sockaddr * addr)               const char *host, struct sockaddr * addr)
 {  {
Line 115 
Line 115 
   
 /* Records that the user has logged out. */  /* Records that the user has logged out. */
   
 void  void
 record_logout(int pid, const char *ttyname)  record_logout(int pid, const char *ttyname)
 {  {
         const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */          const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12