From: Wayne Davison Date: Mon, 7 Jul 2003 18:37:38 +0000 (+0000) Subject: I decided to go with the slightly simpler logic Thorild Selen suggested X-Git-Tag: v2.5.7~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7da9a16d10eecddf695d00fbbf948e9b70bd7706;p=thirdparty%2Frsync.git I decided to go with the slightly simpler logic Thorild Selen suggested in a subsequent email. --- diff --git a/access.c b/access.c index 710a1afe..bd07567a 100644 --- a/access.c +++ b/access.c @@ -88,8 +88,7 @@ static int match_address(char *addr, char *tok) /* Fail quietly if tok is a hostname (not an address) */ if (strspn(tok, "./0123456789") != len #ifdef INET6 - && strspn(tok, "/0123456789:ABCDEFabcdef") != len - && !strchr(tok, '%') + && !strchr(tok, ':') #endif ) return 0;