From 536ba5e23af748c48208101867ea8ef5b19c3753 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 25 Feb 2009 12:21:11 +0000 Subject: [PATCH] Make sure def_prompt is always defined. This is a workaround for 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/pam.c b/auth/pam.c index a9831ec9f..0d0a3d295 100644 --- a/auth/pam.c +++ b/auth/pam.c @@ -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 -- 2.50.0