$NetBSD: patch-am,v 1.6 2006/02/12 00:13:55 salo Exp $ --- auth2.c.orig 2005-09-23 21:43:51.000000000 -0500 +++ auth2.c 2006-02-08 21:05:04.000000000 -0600 @@ -212,7 +212,7 @@ 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