summaryrefslogtreecommitdiff
path: root/auth.c
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 /auth.c
parent010359b32659f455fddd2bd85fd7cc4d7a3b994a (diff)
upstream commit
unbreak DenyUsers; reported by henning@ Upstream-ID: 1c67d4148f5e953c35acdb62e7c08ae8e33f7cb2
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index f7c1e7f3..2de2db42 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.117 2016/11/06 05:46:37 djm Exp $ */
+/* $OpenBSD: auth.c,v 1.118 2016/11/08 22:04:34 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -198,7 +198,7 @@ allowed_user(struct passwd * pw)
if (r < 0) {
fatal("Invalid DenyUsers pattern \"%.100s\"",
options.deny_users[i]);
- } else if (r != 1) {
+ } else if (r != 0) {
logit("User %.100s from %.100s not allowed "
"because listed in DenyUsers",
pw->pw_name, hostname);