summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authormouring <mouring>2001-02-15 03:08:27 +0000
committermouring <mouring>2001-02-15 03:08:27 +0000
commitf878141f5f11b0d46961fa92efbab4a0a75b30d4 (patch)
tree97fe57fbdd3d6d0a88c7a46ec18ace7e70787991 /auth-passwd.c
parentea7e32e35b2d808cf84a3ac86afabe22dab2b106 (diff)
downloadopenssh-f878141f5f11b0d46961fa92efbab4a0a75b30d4.tar.gz
- markus@cvs.openbsd.org 2001/02/12 16:16:23
[auth-passwd.c auth.c auth.h auth1.c auth2.c servconf.c servconf.h ssh-keygen.c sshd.8] PermitRootLogin={yes,without-password,forced-commands-only,no} (before this change, root could login even if PermitRootLogin==no)
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index 9f763267..c849abdc 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -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