summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2016-11-08 22:04:34 +0000
committerDamien Miller <djm@mindrot.org>2016-11-10 10:33:51 +1100
commit1a6f9d2e2493d445cd9ee496e6e3c2a2f283f66a (patch)
treea6d48994d9b95e3b4de74d16d7baf0f0d91bc51b
parent010359b32659f455fddd2bd85fd7cc4d7a3b994a (diff)
upstream commit
unbreak DenyUsers; reported by henning@ Upstream-ID: 1c67d4148f5e953c35acdb62e7c08ae8e33f7cb2
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index f7c1e7f3b..2de2db42c 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.c,v 1.117 2016/11/06 05:46:37 djm Exp $ */ 1/* $OpenBSD: auth.c,v 1.118 2016/11/08 22:04:34 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -198,7 +198,7 @@ allowed_user(struct passwd * pw)
198 if (r < 0) { 198 if (r < 0) {
199 fatal("Invalid DenyUsers pattern \"%.100s\"", 199 fatal("Invalid DenyUsers pattern \"%.100s\"",
200 options.deny_users[i]); 200 options.deny_users[i]);
201 } else if (r != 1) { 201 } else if (r != 0) {
202 logit("User %.100s from %.100s not allowed " 202 logit("User %.100s from %.100s not allowed "
203 "because listed in DenyUsers", 203 "because listed in DenyUsers",
204 pw->pw_name, hostname); 204 pw->pw_name, hostname);