From: Todd C. Miller Date: Mon, 6 Dec 1999 06:23:29 +0000 (+0000) Subject: Honor insults flag. X-Git-Tag: SUDO_1_6_1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c85a0b9bc40e5827ec0c7547c5831e910bd0c6f7;p=sudo Honor insults flag. --- diff --git a/auth/sudo_auth.c b/auth/sudo_auth.c index ba37bcf64..90b6f5713 100644 --- a/auth/sudo_auth.c +++ b/auth/sudo_auth.c @@ -224,11 +224,10 @@ 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 */ + if (def_flag(I_INSULTS)) + (void) fprintf(fp, "%s\n", INSULT); + else + (void) fprintf(fp, "%s\n", def_str(I_BADPASS_MSG)); } void