summaryrefslogtreecommitdiff
path: root/security/openssh/patches/patch-auth2.c
blob: 07677e7f0d8afa9025554bb76e800c935b9c1558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-auth2.c,v 1.3.12.2 2015/08/24 19:06:40 tron Exp $

Replace uid 0 with ROOTUID macro

--- auth2.c.orig	2015-07-01 02:35:31.000000000 +0000
+++ auth2.c
@@ -302,7 +302,7 @@ userauth_finish(Authctxt *authctxt, int 
 		fatal("INTERNAL ERROR: authenticated and postponed");
 
 	/* 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