$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
