blob: 6b4cf1f9a92e72ada400ac2d83907dc806a29bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-am,v 1.7 2006/10/31 03:31:20 taca Exp $
--- auth2.c.orig 2006-08-05 11:39:39.000000000 +0900
+++ auth2.c
@@ -223,7 +223,7 @@ userauth_finish(Authctxt *authctxt, int
authctxt->user);
/* Special handling for root */
- if (authenticated && authctxt->pw->pw_uid == 0 &&
+ if (authenticated && authctxt->pw->pw_uid == ROOTUID &&
!auth_root_allowed(method)) {
authenticated = 0;
#ifdef SSH_AUDIT_EVENTS
|