summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth1.c b/auth1.c
index 2649924fd..11c56a519 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth1.c,v 1.16 2001/02/12 16:16:23 markus Exp $"); 13RCSID("$OpenBSD: auth1.c,v 1.17 2001/02/13 22:49:40 markus Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "rsa.h" 16#include "rsa.h"
@@ -378,8 +378,6 @@ do_authentication()
378 authctxt->user = user; 378 authctxt->user = user;
379 authctxt->style = style; 379 authctxt->style = style;
380 380
381 setproctitle("%s", user);
382
383 /* Verify that the user is a valid user. */ 381 /* Verify that the user is a valid user. */
384 pw = getpwnam(user); 382 pw = getpwnam(user);
385 if (pw && allowed_user(pw)) { 383 if (pw && allowed_user(pw)) {
@@ -391,6 +389,8 @@ do_authentication()
391 } 389 }
392 authctxt->pw = pw; 390 authctxt->pw = pw;
393 391
392 setproctitle("%s", pw ? user : "unknown");
393
394#ifdef USE_PAM 394#ifdef USE_PAM
395 if (pw) 395 if (pw)
396 start_pam(user); 396 start_pam(user);