]> granicus.if.org Git - sudo/commitdiff
now uses insults
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Nov 1993 08:00:06 +0000 (08:00 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Nov 1993 08:00:06 +0000 (08:00 +0000)
check.c

diff --git a/check.c b/check.c
index 552ca5ae71aa4c18e79b7397ae8128aa1b06a0f1..8c7981088278f15bf84f745b289e6c6c595c538b 100644 (file)
--- a/check.c
+++ b/check.c
@@ -50,6 +50,7 @@ static char rcsid[] = "$Id$";
 #include <sys/file.h>
 #include <pwd.h>
 #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);