hrev47549 adds 1 changeset to branch 'master' old head: 807bd20a8f13854c2c198aba25a6f4036726832e new head: 6be2152bc46bcad55980d6adefd3ce46df14fc15 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=6be2152+%5E807bd20 ---------------------------------------------------------------------------- 6be2152: libbind: allow underscores in domain names As discussed in //www.freelists.org/post/haiku-development/Proposal-adding-nochecknames-to-resolvconf-by-default The underscore is handled like the hyphen, that is, it can only be in the middle of a word. "a_b.com" is valid, but "a_.com" and "_a.com" are not. Patch is from http://lists.freebsd.org/pipermail/freebsd-arch/2003-March/000071.html [ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev47549 Commit: 6be2152bc46bcad55980d6adefd3ce46df14fc15 URL: http://cgit.haiku-os.org/haiku/commit/?id=6be2152 Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> Date: Tue Jul 22 16:08:24 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 1 insertion(+), 1 deletion(-) src/kits/network/libbind/resolv/res_comp.c | 2 +- ---------------------------------------------------------------------------- diff --git a/src/kits/network/libbind/resolv/res_comp.c b/src/kits/network/libbind/resolv/res_comp.c index 08a66b2..2c8d0fe 100644 --- a/src/kits/network/libbind/resolv/res_comp.c +++ b/src/kits/network/libbind/resolv/res_comp.c @@ -140,7 +140,7 @@ dn_skipname(const u_char *ptr, const u_char *eom) { * is not careful about this, but for some reason, we're doing it right here. */ #define PERIOD 0x2e -#define hyphenchar(c) ((c) == 0x2d) +#define hyphenchar(c) ((c) == 0x2d || (c) == 0x5f) #define bslashchar(c) ((c) == 0x5c) #define periodchar(c) ((c) == PERIOD) #define asterchar(c) ((c) == 0x2a)