summaryrefslogtreecommitdiffstats
path: root/auth1.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:24:38 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:24:38 +0000
commit2ae18f40a70632eb87eca114980649dae8c476ff (patch)
treef9d5dd660441f05c1ff96c48eda5e626b06c69f3 /auth1.c
parenteacc71b558d29c243ea540c3d6acd2cf6ca15552 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth1.c b/auth1.c
index c2d99895..013c7418 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.35 2002/02/03 17:53:25 markus Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.36 2002/03/17 20:25:56 provos Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -382,8 +382,8 @@ do_authentication(void)
authctxt->style = style;
/* Verify that the user is a valid user. */
- pw = getpwnam(user);
- if (pw && allowed_user(pw)) {
+ pw = getpwnamallow(user);
+ if (pw) {
authctxt->valid = 1;
pw = pwcopy(pw);
} else {