diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-10 13:14:39 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-10 13:14:39 +0000 |
commit | 11549e1b7342c4d64391f3f5f05a1a97828725b0 (patch) | |
tree | fde2db0901d9317e723b078b71264751961e5b86 /package/network/utils/dante/patches/100-do-not-use-defdname.patch | |
parent | b5ab35e8165fd7e6104b53b9d21f86e8db86f818 (diff) | |
download | master-31e0f0ae-11549e1b7342c4d64391f3f5f05a1a97828725b0.tar.gz master-31e0f0ae-11549e1b7342c4d64391f3f5f05a1a97828725b0.tar.bz2 master-31e0f0ae-11549e1b7342c4d64391f3f5f05a1a97828725b0.zip |
dante: move to trunk and add myself as maintainer
SVN-Revision: 33699
Diffstat (limited to 'package/network/utils/dante/patches/100-do-not-use-defdname.patch')
-rw-r--r-- | package/network/utils/dante/patches/100-do-not-use-defdname.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/network/utils/dante/patches/100-do-not-use-defdname.patch b/package/network/utils/dante/patches/100-do-not-use-defdname.patch new file mode 100644 index 0000000000..37b91a9ffc --- /dev/null +++ b/package/network/utils/dante/patches/100-do-not-use-defdname.patch @@ -0,0 +1,42 @@ +--- a/lib/addressmatch.c ++++ b/lib/addressmatch.c +@@ -399,18 +399,6 @@ addrmatch(rule, address, protocol, alias + if (hostareeq(rule->addr.domain, hostent->h_name) + || hostisinlist(rule->addr.domain, (const char **)hostent->h_aliases)) + matched = 1; +-#if !HAVE_NO_RESOLVESTUFF +- else if (strchr(hostent->h_name, '.') == NULL) { +- /* if hostname we got is non-qualified, try to qualify it. */ +- char fqdn[MAXHOSTNAMELEN]; +- +- snprintf(fqdn, sizeof(fqdn), "%s.%s", +- hostent->h_name, _res.defdname); +- +- if (hostareeq(rule->addr.domain, fqdn)) +- matched = 1; +- } +-#endif /* !HAVE_NO_RESOLVESTUFF */ + } + + if (!matched && alias) { +@@ -465,20 +453,6 @@ addrmatch(rule, address, protocol, alias + matched = 1; + break; + } +-#if !HAVE_NO_RESOLVESTUFF +- else if (strchr(ip->h_name, '.') == NULL) { +- /* if hostname we got is non-qualified, try to qualify it. */ +- char fqdn[MAXHOSTNAMELEN]; +- +- snprintf(fqdn, sizeof(fqdn), "%s.%s", +- ip->h_name, _res.defdname); +- +- if (hostareeq(rule->addr.domain, fqdn)) { +- matched = 1; +- break; +- } +- } +-#endif /* !HAVE_NO_RESOLVESTUFF */ + } + + hostentfree(host); |