]> andersk Git - openssh.git/blobdiff - auth-passwd.c
- markus@cvs.openbsd.org 2001/02/12 16:16:23
[openssh.git] / auth-passwd.c
index 9f763267fa17b95944f141d18ffb423f322504e7..c849abdcc364bc7078405a586c8f2315eb788033 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth-passwd.c,v 1.20 2001/01/21 19:05:42 markus Exp $");
+RCSID("$OpenBSD: auth-passwd.c,v 1.21 2001/02/12 16:16:23 markus Exp $");
 
 #if !defined(USE_PAM) && !defined(HAVE_OSF_SIA)
 
@@ -110,7 +110,7 @@ auth_password(struct passwd * pw, const char *password)
        if (pw == NULL)
                return 0;
 #ifndef HAVE_CYGWIN
-       if (pw->pw_uid == 0 && options.permit_root_login == 2)
+       if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
                return 0;
 #endif
 #ifdef HAVE_CYGWIN
This page took 0.05186 seconds and 4 git commands to generate.