Bug 191

Summary: compilation faills in auth1.c:392 `pw' undeclared when USE_PAM is on
Product: Portable OpenSSH Reporter: Kent Engström <kent>
Component: MiscellaneousAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: critical    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Linux   

Description Kent Engström 2002-03-28 01:14:33 AEDT
auth1.c: In function `do_authentication':
auth1.c:392: `pw' undeclared (first use in this function)
auth1.c:392: (Each undeclared identifier is reported only once
auth1.c:392: for each function it appears in.)

Perhaps "pw" should be "authctxt->pw"?
Comment 1 Ben Lindstrom 2002-03-28 02:05:47 AEDT
I'm using the CVS source and it works fine for me under Redhat 7.0  The
area of code you are refering to has the 'pw' defined at the start of the 
do_authentification(void).

- Ben
Comment 2 Markus Friedl 2002-03-28 03:13:22 AEDT
Index: auth1.c
===================================================================
RCS file: /cvs/openssh_cvs/auth1.c,v
retrieving revision 1.64
diff -u -r1.64 auth1.c
--- auth1.c     22 Mar 2002 03:04:11 -0000      1.64
+++ auth1.c     27 Mar 2002 15:58:51 -0000
@@ -389,7 +389,7 @@
            use_privsep ? " [net]" : "");
 
 #ifdef USE_PAM
-       start_pam(pw == NULL ? "NOUSER" : user);
+       start_pam(authctxt->pw == NULL ? "NOUSER" : user);
 #endif
 
        /*
Comment 3 Ben Lindstrom 2002-03-28 03:51:42 AEDT
I had an odd version checked out on this test machine.  Just committed fix.
Comment 4 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED