summaryrefslogtreecommitdiff
path: root/access.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-07 18:37:38 +0000
committerWayne Davison <wayned@samba.org>2003-07-07 18:37:38 +0000
commit7da9a16d10eecddf695d00fbbf948e9b70bd7706 (patch)
treedaa157bd62f8f2d71dc752452b9af03409d65919 /access.c
parent32f60a6e7bec42f733a60eb10afa29a231f691b9 (diff)
downloadrsync-7da9a16d10eecddf695d00fbbf948e9b70bd7706.tar.gz
rsync-7da9a16d10eecddf695d00fbbf948e9b70bd7706.tar.bz2
rsync-7da9a16d10eecddf695d00fbbf948e9b70bd7706.zip
I decided to go with the slightly simpler logic Thorild Selen suggested
in a subsequent email.
Diffstat (limited to 'access.c')
-rw-r--r--access.c3
1 files changed, 1 insertions, 2 deletions
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;