summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-09-04 16:37:26 +1000
committerDamien Miller <djm@mindrot.org>2002-09-04 16:37:26 +1000
commitde6f2de8ad528cd8cdfb4b4dc5de9e7ba086c957 (patch)
treeb5665b1ac83d5ec745dba26cb6d000b5686d402f /auth1.c
parent061d5b144f7aaa9ce86838d437790b8e3a46050c (diff)
- markus@cvs.openbsd.org 2002/08/22 21:33:58
[auth1.c auth2.c] auth_root_allowed() is handled by the monitor in the privsep case, so skip this for use_privsep, ok stevesk@, fixes bugzilla #387/325
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 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.41 2002/06/19 00:27:55 deraadt Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.42 2002/08/22 21:33:58 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -301,7 +301,8 @@ do_authloop(Authctxt *authctxt)
}
#else
/* Special handling for root */
- if (authenticated && authctxt->pw->pw_uid == 0 &&
+ if (!use_privsep &&
+ authenticated && authctxt->pw->pw_uid == 0 &&
!auth_root_allowed(get_authname(type)))
authenticated = 0;
#endif