]> granicus.if.org Git - sudo/commitdiff
Make sure def_prompt is always defined. This is a workaround for
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Feb 2009 12:21:11 +0000 (12:21 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Feb 2009 12:21:11 +0000 (12:21 +0000)
pam configs that prompt for a password in the session but don't
have an auth line.  A better fix is to expand the sudo prompt earlier
and set def_prompt to that when initializing.

auth/pam.c

index a9831ec9f3b4ef0262c2d9ffb49286bb609fb587..0d0a3d295f63ab519ec52e6a0517188fa897645c 100644 (file)
@@ -78,7 +78,7 @@ __unused static const char rcsid[] = "$Sudo$";
 
 static int sudo_conv __P((int, PAM_CONST struct pam_message **,
                          struct pam_response **, void *));
-static char *def_prompt;
+static char *def_prompt = "Password:";
 static int gotintr;
 
 #ifndef PAM_DATA_SILENT