diff options
author | Wayne Davison <wayned@samba.org> | 2003-07-07 18:37:38 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-07-07 18:37:38 +0000 |
commit | 7da9a16d10eecddf695d00fbbf948e9b70bd7706 (patch) | |
tree | daa157bd62f8f2d71dc752452b9af03409d65919 /access.c | |
parent | 32f60a6e7bec42f733a60eb10afa29a231f691b9 (diff) | |
download | rsync-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |