version 1.15, 2009/10/27 23:59:40 |
version 1.16, 2013/06/01 21:06:39 |
|
|
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 */ |