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

Diff for /src/usr.bin/login/failedlogin.c between version 1.15 and 1.16

version 1.15, 2009/10/27 23:59:40 version 1.16, 2013/06/01 21:06:39
Line 56 
Line 56 
         int fd;          int fd;
   
         /* Add O_CREAT if you want to create failedlogin if it doesn't exist */          /* Add O_CREAT if you want to create failedlogin if it doesn't exist */
         if ((fd = open(_PATH_FAILEDLOGIN, O_RDWR, S_IREAD|S_IWRITE)) >= 0) {          if ((fd = open(_PATH_FAILEDLOGIN, O_RDWR, S_IRUSR|S_IWUSR)) >= 0) {
                 (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET);                  (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET);
   
                 /* Read in last bad login so can get the count */                  /* Read in last bad login so can get the count */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16