summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/auth/sudo_auth.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-12-10 06:45:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-12-10 06:45:13 +0000
commitf52a0005ece044a50595a03f786d0d29d08b41fb (patch)
tree8896ba209bc14900cab276cc4475db6f09d0bbf1 /usr.bin/sudo/auth/sudo_auth.c
parente3981c5afb17f67e9ac5a94b949bbfac1bcc20b1 (diff)
sudo 1.6.1
Diffstat (limited to 'usr.bin/sudo/auth/sudo_auth.c')
-rw-r--r--usr.bin/sudo/auth/sudo_auth.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/sudo/auth/sudo_auth.c b/usr.bin/sudo/auth/sudo_auth.c
index 74a20ce509b..c9b65e257aa 100644
--- a/usr.bin/sudo/auth/sudo_auth.c
+++ b/usr.bin/sudo/auth/sudo_auth.c
@@ -57,7 +57,7 @@
#include "insults.h"
#ifndef lint
-static const char rcsid[] = "$Sudo: sudo_auth.c,v 1.15 1999/10/13 02:34:55 millert Exp $";
+static const char rcsid[] = "$Sudo: sudo_auth.c,v 1.17 1999/12/06 06:47:19 millert Exp $";
#endif /* lint */
sudo_auth auth_switch[] = {
@@ -224,11 +224,12 @@ pass_warn(fp)
FILE *fp;
{
-#ifdef USE_INSULTS
- (void) fprintf(fp, "%s\n", INSULT);
-#else
- (void) fprintf(fp, "%s\n", def_str(I_BADPASS_MSG));
-#endif /* USE_INSULTS */
+#ifdef INSULT
+ if (def_flag(I_INSULTS))
+ (void) fprintf(fp, "%s\n", INSULT);
+ else
+#endif
+ (void) fprintf(fp, "%s\n", def_str(I_BADPASS_MSG));
}
void