mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
log unsuccessful login attempts even when user doesn't exist
This commit is contained in:
parent
7549ba69fa
commit
cf3ed3e9f5
1 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,12 @@ int main (int argc, char** argv) {
|
|||
}
|
||||
} else {
|
||||
printf("Error: no such user\n",argv[1]);
|
||||
strcat(str, argv[1]);
|
||||
strcat(str, " ");
|
||||
strcat(str, ip);
|
||||
strcat(str, " failed to login \n");
|
||||
fputs (str,pFile); /* write */
|
||||
fclose (pFile); /* close */
|
||||
exit(3);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue