X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Ftools.c;h=0da95dd62006c2273139afd5d1fdc6251c9e3608;hb=bcd38117e36e4e89fee595306d53cb5dab0fe18c;hp=445006a2fa3b7516b696bbee888e18bdb5f9ced5;hpb=138fe497d304b8802c189f9355d787483656db61;p=srvx.git 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./*?")]