Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the non-globbing version of glob_expand_one() so that it
[rsync/rsync.git]
/
access.c
diff --git
a/access.c
b/access.c
index
bd07567
..
1dc73ae
100644
(file)
--- a/
access.c
+++ b/
access.c
@@
-27,7
+27,7
@@
static int match_hostname(char *host, char *tok)
{
if (!host || !*host) return 0;
static int match_hostname(char *host, char *tok)
{
if (!host || !*host) return 0;
- return
(fnmatch(tok, host, 0) == 0
);
+ return
wildmatch(tok, host
);
}
static int match_binary(char *b1, char *b2, char *mask, int addrlen)
}
static int match_binary(char *b1, char *b2, char *mask, int addrlen)
@@
-86,7
+86,7
@@
static int match_address(char *addr, char *tok)
len = strlen(tok);
/* Fail quietly if tok is a hostname (not an address) */
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
&& !strchr(tok, ':')
#endif
#ifdef INET6
&& !strchr(tok, ':')
#endif