summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authordjm <djm>2002-09-04 06:37:26 +0000
committerdjm <djm>2002-09-04 06:37:26 +0000
commit0a99abf8bb2812a66c9eec72faec81882f9724a7 (patch)
tree9643f650d4aaa9af66f44796dde0c2e8d172fc61 /auth1.c
parent4fb32e2ffef2dd529df52bedabda681ae1ca7769 (diff)
downloadopenssh-0a99abf8bb2812a66c9eec72faec81882f9724a7.tar.gz
- 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 769fa306..17342a65 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