diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2015-08-21 03:42:20 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2015-08-21 03:42:20 +0000 |
commit | 2d625f44c7b170a40ac8016c58d405b8094f1c70 (patch) | |
tree | 45a44157e77b580ab52e7dab4f96a28a3c41f568 | |
parent | 5c286445466e6356b37c59a321fd4cb5f19bed75 (diff) |
fix inverted logic that broke PermitRootLogin;
reported by Mantas Mikulenas; ok markus@
-rw-r--r-- | usr.bin/ssh/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c index 24ec9d97ca0..4b46969af4b 100644 --- a/usr.bin/ssh/auth.c +++ b/usr.bin/ssh/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.112 2015/08/06 14:53:21 deraadt Exp $ */ +/* $OpenBSD: auth.c,v 1.113 2015/08/21 03:42:19 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -263,7 +263,7 @@ auth_root_allowed(const char *method) case PERMIT_NO_PASSWD: if (strcmp(method, "publickey") == 0 || strcmp(method, "hostbased") == 0 || - strcmp(method, "gssapi-with-mic")) + strcmp(method, "gssapi-with-mic") == 0) return 1; break; case PERMIT_FORCED_ONLY: |