$NetBSD: patch-af,v 1.10 2006/10/31 03:31:20 taca Exp $ --- auth-passwd.c.orig 2006-08-05 11:39:39.000000000 +0900 +++ auth-passwd.c @@ -87,7 +87,7 @@ auth_password(Authctxt *authctxt, const #endif #ifndef HAVE_CYGWIN - if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) + if (pw->pw_uid == ROOTUID && options.permit_root_login != PERMIT_YES) ok = 0; #endif if (*password == '\0' && options.permit_empty_passwd == 0) @@ -122,7 +122,12 @@ auth_password(Authctxt *authctxt, const authctxt->force_pwchange = 1; } #endif + +#ifdef HAVE_INTERIX + result = (!setuser(pw->pw_name, password, SU_CHECK)); +#else result = sys_auth_passwd(authctxt, password); +#endif if (authctxt->force_pwchange) disable_forwarding(); return (result && ok);