[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.9 and 1.10

version 1.9, 1999/11/24 00:26:02 version 1.10, 1999/11/24 19:53:47
Line 24 
Line 24 
 #include <utmp.h>  #include <utmp.h>
 #include "ssh.h"  #include "ssh.h"
   
 /* Returns the time when the user last logged in.  Returns 0 if the  /*
    information is not available.  This must be called before record_login.   * Returns the time when the user last logged in.  Returns 0 if the
    The host the user logged in from will be returned in buf. */   * information is not available.  This must be called before record_login.
    * The host the user logged in from will be returned in buf.
    */
   
 /* Returns the time when the user last logged in (or 0 if no previous login  /*
    is found).  The name of the host used last time is returned in buf. */   * Returns the time when the user last logged in (or 0 if no previous login
    * 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,
Line 58 
Line 62 
         return ll.ll_time;          return ll.ll_time;
 }  }
   
 /* Records that the user has logged in.  I these parts of operating systems  /*
    were more standardized. */   * Records that the user has logged in.  I these parts of operating systems
    * 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,
Line 87 
Line 93 
   
         /* Update lastlog unless actually recording a logout. */          /* Update lastlog unless actually recording a logout. */
         if (strcmp(user, "") != 0) {          if (strcmp(user, "") != 0) {
                 /* It is safer to bzero the lastlog structure first                  /*
                    because some systems might have some extra fields in it                   * It is safer to bzero the lastlog structure first because
                    (e.g. SGI) */                   * some systems might have some extra fields in it (e.g. SGI)
                    */
                 memset(&ll, 0, sizeof(ll));                  memset(&ll, 0, sizeof(ll));
   
                 /* Update lastlog. */                  /* Update lastlog. */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10