summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--auth1.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a87714da7..95697dfcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
20 - (djm) Merge patch from Tim Waugh (via Nalin Dahyabhai <nalin@redhat.com>) 20 - (djm) Merge patch from Tim Waugh (via Nalin Dahyabhai <nalin@redhat.com>)
21 to fix NULL pointer deref and fake authloop breakage in PAM code. 21 to fix NULL pointer deref and fake authloop breakage in PAM code.
22 - (bal) Updated contrib/cygwin/ by Corinna Vinschen <vinschen@redhat.com> 22 - (bal) Updated contrib/cygwin/ by Corinna Vinschen <vinschen@redhat.com>
23 - (bal) Minor cygwin patch to auth1.c. Suggested by djm.
23 24
2420010118 2520010118
25 - (bal) Super Sized OpenBSD Resync 26 - (bal) Super Sized OpenBSD Resync
diff --git a/auth1.c b/auth1.c
index e990ff57e..2df2de897 100644
--- a/auth1.c
+++ b/auth1.c
@@ -329,13 +329,12 @@ do_authloop(Authctxt *authctxt)
329 (int)pw->pw_uid); 329 (int)pw->pw_uid);
330 authenticated = 0; 330 authenticated = 0;
331 } 331 }
332#endif 332#else
333
334 /* Special handling for root */ 333 /* Special handling for root */
335 if (authenticated && authctxt->pw->pw_uid == 0 && !auth_root_allowed()) 334 if (authenticated && authctxt->pw->pw_uid == 0 && !auth_root_allowed())
336 authenticated = 0; 335 authenticated = 0;
337 336#endif
338#ifdef USE_PAM /* ISSUE: Right place? */ 337#ifdef USE_PAM
339 if (authenticated && !do_pam_account(pw->pw_name, client_user)) 338 if (authenticated && !do_pam_account(pw->pw_name, client_user))
340 authenticated = 0; 339 authenticated = 0;
341#endif 340#endif