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

Diff for /src/usr.bin/last/last.c between version 1.40 and 1.41

version 1.40, 2014/04/17 09:56:09 version 1.41, 2014/04/17 14:49:11
Line 414 
Line 414 
   
         if (check) {          if (check) {
                 /*                  /*
                  * when uucp and ftp log in over a network, the entry in                   * when ftp logs in over a network, the entry in
                  * the utmp file is the name plus their process id.  See                   * the utmp file is the name plus its process id.
                  * etc/ftpd.c and usr.bin/uucp/uucpd.c for more information.  
                  */                   */
                 if (!strncmp(bp->ut_line, "ftp", sizeof("ftp") - 1))                  if (!strncmp(bp->ut_line, "ftp", sizeof("ftp") - 1))
                         bp->ut_line[3] = '\0';                          bp->ut_line[3] = '\0';
                 else if (!strncmp(bp->ut_line, "uucp", sizeof("uucp") - 1))  
                         bp->ut_line[4] = '\0';  
         }          }
   
         if (snaptime)           /* if snaptime is set, return NO */          if (snaptime)           /* if snaptime is set, return NO */

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41