]> granicus.if.org Git - sudo/commitdiff
Honor insults flag.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Dec 1999 06:23:29 +0000 (06:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Dec 1999 06:23:29 +0000 (06:23 +0000)
auth/sudo_auth.c

index ba37bcf64bd7bd5dcd2e37866cd21a7f927b882a..90b6f5713f9ec5937efc7ea1cea0d70b6bde3178 100644 (file)
@@ -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