From: Todd C. Miller Date: Sun, 28 Nov 1993 08:00:06 +0000 (+0000) Subject: now uses insults X-Git-Tag: SUDO_1_3_0~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e52f0a1c39ae3a1772bcd7b2ef64963223f3c4ad;p=sudo now uses insults --- diff --git a/check.c b/check.c index 552ca5ae7..8c7981088 100644 --- a/check.c +++ b/check.c @@ -50,6 +50,7 @@ static char rcsid[] = "$Id$"; #include #include #include "sudo.h" +#include "insults.h" char *getpass(); @@ -238,7 +239,11 @@ static void check_passwd() if (!strcmp(encrypted, crypt(pass, encrypted))) return; /* if the passwd is correct return() */ --counter; /* otherwise, try again */ +#ifdef USE_INSULTS + (void) fprintf(stderr, "%s\n", INSULT); +#else (void) fprintf(stderr, "%s\n", INCORRECT_PASSWORD); +#endif /* USE_INSULTS */ } log_error(PASSWORD_NOT_CORRECT);