From c1e520bbcf7f97302794aa7b631dd85199250ba0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 1 Apr 1995 01:33:11 +0000 Subject: [PATCH] added PASSWORDS_NOT_CORRECT --- logging.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/logging.c b/logging.c index e5bb082aa..f4daf6e65 100644 --- a/logging.c +++ b/logging.c @@ -154,6 +154,13 @@ void log_error(code) break; case PASSWORD_NOT_CORRECT: + (void) sprintf(p, "password incorrect ; PWD=%s ; COMMAND=", cwd); +#if (LOGGING & SLOG_SYSLOG) + pri = Syslog_priority_NO; +#endif /* LOGGING & SLOG_SYSLOG */ + break; + + case PASSWORDS_NOT_CORRECT: (void) sprintf(p, "%d incorrect passwords ; PWD=%s ; COMMAND=", TRIES_FOR_PASSWORD, cwd); #if (LOGGING & SLOG_SYSLOG) @@ -552,6 +559,11 @@ void inform_user(code) break; case PASSWORD_NOT_CORRECT: + (void) fprintf(stderr, "Password not entered correctly\n\n", + TRIES_FOR_PASSWORD); + break; + + case PASSWORDS_NOT_CORRECT: (void) fprintf(stderr, "Password not entered correctly after %d tries\n\n", TRIES_FOR_PASSWORD); break; @@ -609,6 +621,7 @@ static int appropriate(code) */ case VALIDATE_OK: case PASSWORD_NOT_CORRECT: + case PASSWORDS_NOT_CORRECT: /* case ALL_SYSTEMS_GO: this is the same as OK */ return (0); break;