X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/32f60a6e7bec42f733a60eb10afa29a231f691b9..16417f8b9d1947f4efbe540ee6983feba2ebc21c:/access.c diff --git a/access.c b/access.c index 710a1afe..25a0680a 100644 --- a/access.c +++ b/access.c @@ -86,10 +86,9 @@ static int match_address(char *addr, char *tok) len = strlen(tok); /* Fail quietly if tok is a hostname (not an address) */ - if (strspn(tok, "./0123456789") != len + if (strspn(tok, ".0123456789") != len #ifdef INET6 - && strspn(tok, "/0123456789:ABCDEFabcdef") != len - && !strchr(tok, '%') + && !strchr(tok, ':') #endif ) return 0;