summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index 769fa306f..17342a658 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.41 2002/06/19 00:27:55 deraadt Exp $"); 13RCSID("$OpenBSD: auth1.c,v 1.42 2002/08/22 21:33:58 markus Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "rsa.h" 16#include "rsa.h"
@@ -301,7 +301,8 @@ do_authloop(Authctxt *authctxt)
301 } 301 }
302#else 302#else
303 /* Special handling for root */ 303 /* Special handling for root */
304 if (authenticated && authctxt->pw->pw_uid == 0 && 304 if (!use_privsep &&
305 authenticated && authctxt->pw->pw_uid == 0 &&
305 !auth_root_allowed(get_authname(type))) 306 !auth_root_allowed(get_authname(type)))
306 authenticated = 0; 307 authenticated = 0;
307#endif 308#endif