search for: host_pattern

Displaying 1 result from an estimated 1 matches for "host_pattern".

2007 Nov 02
1
[Patch, enh] Permit host and IP addresses in (Allow|Deny)Groups
...turn 1 if one of user's groups is matched by a group pattern AND + * (access allowed from anywhere OR access is from allowed host / network). + * Return 0 otherwise. + */ +int +ga_match_host_and_ip(char * const *patterns, int npatterns, + const char *hostname, const char *ipaddr) +{ + char *host_pattern; + char *name_pattern; + int found; + int i, j; + + found = 0; + for (i = 0; !found && i < npatterns; i++) { + name_pattern = xstrdup(patterns[i]); + host_pattern = strchr(name_pattern, '@'); + if (host_pattern) + *host_pattern++ = '\0...