From bcd38117e36e4e89fee595306d53cb5dab0fe18c Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 29 Apr 2006 03:11:35 +0000 Subject: [PATCH] Fix visible matching for fake and +x-hidden hosts. src/tools.c (user_matches_glob): Use correct test to determine whether the user's host is hidden. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-13 --- ChangeLog | 14 ++++++++++++++ src/tools.c | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4154aa2..0ad3c1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-04-29 03:11:35 GMT Michael Poole patch-13 + + Summary: + Fix visible matching for fake and +x-hidden hosts. + Revision: + srvx--devo--1.3--patch-13 + + src/tools.c (user_matches_glob): Use correct test to determine whether + the user's host is hidden. + + modified files: + ChangeLog src/tools.c + + 2006-04-07 00:56:38 GMT Michael Poole patch-12 Summary: diff --git a/src/tools.c b/src/tools.c index 445006a..0da95dd 100644 --- a/src/tools.c +++ b/src/tools.c @@ -614,7 +614,8 @@ user_matches_glob(struct userNode *user, const char *orig_glob, int flags) return 1; } /* If only matching the visible hostnames, bail early. */ - if ((flags & MATCH_VISIBLE) && (IsFakeHost(user) || IsHiddenHost(user))) + if ((flags & MATCH_VISIBLE) && IsHiddenHost(user) + && (IsFakeHost(user) || (hidden_host_suffix && user->handle_info))) return 0; /* If it might be an IP glob, test that. */ if (!glob[strspn(glob, "0123456789./*?")] -- 2.20.1