diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 5 |
1 files changed, 2 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.46 2003/01/23 00:03:00 djm Exp $"); | 13 | RCSID("$OpenBSD: auth1.c,v 1.47 2003/02/06 21:22:42 markus Exp $"); |
14 | 14 | ||
15 | #include "xmalloc.h" | 15 | #include "xmalloc.h" |
16 | #include "rsa.h" | 16 | #include "rsa.h" |
@@ -328,8 +328,7 @@ do_authloop(Authctxt *authctxt) | |||
328 | } | 328 | } |
329 | #else | 329 | #else |
330 | /* Special handling for root */ | 330 | /* Special handling for root */ |
331 | if (!use_privsep && | 331 | if (authenticated && authctxt->pw->pw_uid == 0 && |
332 | authenticated && authctxt->pw->pw_uid == 0 && | ||
333 | !auth_root_allowed(get_authname(type))) | 332 | !auth_root_allowed(get_authname(type))) |
334 | authenticated = 0; | 333 | authenticated = 0; |
335 | #endif | 334 | #endif |