diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 01:24:38 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 01:24:38 +0000 |
commit | 2ae18f40a70632eb87eca114980649dae8c476ff (patch) | |
tree | f9d5dd660441f05c1ff96c48eda5e626b06c69f3 /auth1.c | |
parent | eacc71b558d29c243ea540c3d6acd2cf6ca15552 (diff) |
- provos@cvs.openbsd.org 2002/03/17 20:25:56
[auth.c auth.h auth1.c auth2.c]
getpwnamallow returns struct passwd * only if user valid; okay markus@
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: auth1.c,v 1.35 2002/02/03 17:53:25 markus Exp $"); | 13 | RCSID("$OpenBSD: auth1.c,v 1.36 2002/03/17 20:25:56 provos Exp $"); |
14 | 14 | ||
15 | #include "xmalloc.h" | 15 | #include "xmalloc.h" |
16 | #include "rsa.h" | 16 | #include "rsa.h" |
@@ -382,8 +382,8 @@ do_authentication(void) | |||
382 | authctxt->style = style; | 382 | authctxt->style = style; |
383 | 383 | ||
384 | /* Verify that the user is a valid user. */ | 384 | /* Verify that the user is a valid user. */ |
385 | pw = getpwnam(user); | 385 | pw = getpwnamallow(user); |
386 | if (pw && allowed_user(pw)) { | 386 | if (pw) { |
387 | authctxt->valid = 1; | 387 | authctxt->valid = 1; |
388 | pw = pwcopy(pw); | 388 | pw = pwcopy(pw); |
389 | } else { | 389 | } else { |