From 80c1c8dcbc2e40069dcd4aa341b1108d5c487e53 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 20 Sep 1998 23:12:21 +0000 Subject: [PATCH] move pam_conv to be static to auth function remove pam_misc.h (solaris doesn't have one) --- check.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/check.c b/check.c index 883d00ec2..9a23d356f 100644 --- a/check.c +++ b/check.c @@ -80,7 +80,6 @@ static char rcsid[] = "$Id$"; #endif /* HAVE_KERB4 */ #ifdef HAVE_PAM # include -# include #endif /* HAVE_PAM */ #ifdef HAVE_AFS # include @@ -139,12 +138,6 @@ union config_record configure; #ifdef HAVE_SKEY struct skey skey; #endif -#ifdef HAVE_PAM -static struct pam_conv conv = { - misc_conv, - NULL -}; -#endif #ifdef HAVE_OPIE struct opie opie; #endif @@ -745,6 +738,10 @@ static void pam_attempt_auth() pam_handle_t *pamh=NULL; int retval; register int counter = TRIES_FOR_PASSWORD; + struct pam_conv conv = { + misc_conv, + NULL + }; set_perms(PERM_ROOT, 0); retval = pam_start("sudo", user_name, &conv, &pamh); -- 2.50.1